diff --git a/mysql/data/data.sql b/mysql/data/data.sql index 5d4940d0bd7..2ac5ed7c1c5 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -51,7 +51,7 @@ insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_ delete from llx_action_def; insert into llx_action_def (rowid,code,titre,description,objet_type) values (1,'NOTIFY_VAL_FICHINTER','Validation fiche intervention','Déclenché lors de la validation d\'une fiche d\'intervention','ficheinter'); insert into llx_action_def (rowid,code,titre,description,objet_type) values (2,'NOTIFY_VAL_FAC','Validation facture','Déclenché lors de la validation d\'une facture','facture'); -insert into llx_action_def (rowid,code,titre,description,objet_type) values (3,'NOTIFY_VAL_ORDER_SUUPLIER','Validation commande fournisseur','Déclenché lors de la validation d\'une commande fournisseur','order_supplier'); +insert into llx_action_def (rowid,code,titre,description,objet_type) values (3,'NOTIFY_VAL_ORDER_SUPPLIER','Validation commande fournisseur','Déclenché lors de la validation d\'une commande fournisseur','order_supplier'); -- -- Constantes de configuration diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index a103a4458cf..fc69c2d5de9 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -8,6 +8,10 @@ -- sans AUCUNE erreur ni warning -- +-- Corrige mauvaise insertion du a champ trop court +alter table llx_action_def modify code varchar(28) UNIQUE NOT NULL; +update llx_action_def set code = 'NOTIFY_VAL_ORDER_SUPPLIER' where code = 'NOTIFY_VAL_ORDER_SUUPLIE'; + -- 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 71dcc10f371..532bb0c55d4 100644 --- a/mysql/tables/llx_action_def.sql +++ b/mysql/tables/llx_action_def.sql @@ -25,7 +25,7 @@ create table llx_action_def ( rowid integer NOT NULL PRIMARY KEY, - code varchar(24) UNIQUE NOT NULL, + code varchar(28) UNIQUE NOT NULL, tms timestamp, titre varchar(255) NOT NULL, description text,