diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index edadcf45b31..d43c9590fdc 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -39,7 +39,9 @@ -- Corrige mauvaise insertion du a champ trop court alter table llx_action_def modify code varchar(28) UNIQUE NOT NULL; +alter table llx_action_def modify objet_type varchar(16) NOT NULL; update llx_action_def set code = 'NOTIFY_VAL_ORDER_SUPPLIER' where code = 'NOTIFY_VAL_ORDER_SUUPLIE'; +update llx_action_def set objet_type = 'order_supplier' where code = 'NOTIFY_VAL_ORDER_SUPPLIER'; -- Nettoyage champ ref table llx_bank_account update llx_bank_account set ref=concat('ACCOUNT',rowid) where (ref='' or ref is null); diff --git a/mysql/tables/llx_action_def.sql b/mysql/tables/llx_action_def.sql index 0e0f17b46b6..790757cb1af 100644 --- a/mysql/tables/llx_action_def.sql +++ b/mysql/tables/llx_action_def.sql @@ -27,5 +27,5 @@ create table llx_action_def tms timestamp, titre varchar(255) NOT NULL, description text, - objet_type enum('ficheinter','facture','propale','mailing') + objet_type varchar(16) NOT NULL )type=innodb;