diff --git a/mysql/migration/2.6.0-2.7.0.sql b/mysql/migration/2.6.0-2.7.0.sql index 4360d7595ca..df10a7204da 100644 --- a/mysql/migration/2.6.0-2.7.0.sql +++ b/mysql/migration/2.6.0-2.7.0.sql @@ -10,11 +10,13 @@ -- so we made first change to remove it alter table llx_menu_const drop foreign key fk_menu_const_fk_menu; +ALTER TABLE llx_adherent ADD UNIQUE INDEX uk_adherent_fk_soc (fk_soc); + update llx_menu_constraint set action = '$conf->societe->enabled' where action = '$conf->commercial->enabled'; -- Clean no more required parameters delete from llx_const where name = 'MAIN_MODULE_COMMERCIAL'; -delete from llx_const where name like 'MAIN_MODULE_%_DIR_OUTPUT' AND name <> 'MAIN_MODULE_SYSLOG_OUTPUT'; +delete from llx_const where name like 'MAIN_MODULE_%_DIR_OUTPUT'; delete from llx_const where name like 'MAIN_MODULE_%_DIR_TEMP'; alter table llx_societe add column import_key varchar(14);