diff --git a/mysql/migration/1.1.0-2.0.0.sql b/mysql/migration/1.1.0-2.0.0.sql index 04554d2e622..836a2bc7b05 100644 --- a/mysql/migration/1.1.0-2.0.0.sql +++ b/mysql/migration/1.1.0-2.0.0.sql @@ -1882,7 +1882,8 @@ create table llx_societe_perms )type=innodb; -drop table if exists llx_element_contact; +drop table if exists llx_contact_facture; + drop table if exists llx_c_type_contact; create table llx_c_type_contact @@ -1902,10 +1903,9 @@ ALTER TABLE llx_c_type_contact create table llx_element_contact ( - rowid integer AUTO_INCREMENT PRIMARY KEY, - datecreate datetime NULL, -- date de creation de l'enregistrement - statut smallint DEFAULT 5, -- 5 inactif, 4 actif - + rowid integer AUTO_INCREMENT PRIMARY KEY, + datecreate datetime NULL, -- date de creation de l'enregistrement + statut smallint DEFAULT 5, -- 5 inactif, 4 actif element_id int NOT NULL, -- la reference de l'element. fk_c_type_contact int NOT NULL, -- nature du contact. fk_socpeople integer NOT NULL