Code cleaning : rename table mod_payment to payment_method

This commit is contained in:
Dany De Bontridder 2019-08-06 21:55:59 +02:00
parent 9e2b09cd0a
commit 56007e9d3d
3 changed files with 28 additions and 13 deletions

View file

@ -1 +1,16 @@
update attr_def set ad_extra = '[sql] fd_id in (select fd_id from fiche_def where frd_id in (4,8,9,14))' where ad_id=25;
alter table mod_payment rename to payment_method;
alter table payment_method add column type_payment_id varchar(6);
comment on column payment_method.type_payment_id is 'Type of payment method';
create table type_payment_ref (id varchar(6 ) primary key,tp_description varchar(80) not null);
insert into type_payment_ref (id,tp_description) values ('CACRD','Carte de crédit'),
('CHCK','Chèque'),
('CASH','Liquide'),
('ELECT','Electronique'),
('VIRT','Virement');