diff --git a/mysql/data/data.sql b/mysql/data/data.sql index 20e4c27197129a3d519485584aa369c0e3f38fe2..6db688d28d3dae83d019bca5cc711e5319fcca2d 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -115,12 +115,6 @@ insert into llx_const(name,value,type,visible,note) values('SOCIETE_CODECLIENT_A insert into llx_const(name,value,type,visible,note) values('SOCIETE_CODECOMPTA_ADDON','mod_codecompta_panicum','yesno',0,'Module to control third parties codes'); --- --- Facture --- -insert into llx_const(name,value,type,visible,note) values('FACTURE_DISABLE_RECUR','1','yesno',0,'Desactivation facture recurrentes'); - - -- -- Mail Adherent -- diff --git a/mysql/migration/2.4.0-2.5.0.sql b/mysql/migration/2.4.0-2.5.0.sql index 265a3ef2f2a06f9deb5f89153ca765b99d1850ee..68b8a25b2a1e8ba10c29a355955c4f38e70adc3e 100644 --- a/mysql/migration/2.4.0-2.5.0.sql +++ b/mysql/migration/2.4.0-2.5.0.sql @@ -73,3 +73,8 @@ alter table llx_don modify fk_user_valid integer NULL; alter table llx_don add note_public text; alter table llx_don add model_pdf varchar(50); alter table llx_don add import_key varchar(14); + +-- Reverse option +update llx_const set visible = 1, name = 'FACTURE_ENABLE_RECUR', value='1' where name = 'FACTURE_DISABLE_RECUR' and value = '0'; +delete from llx_const where name = 'FACTURE_DISABLE_RECUR' and value = '1'; +