diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index 2e906e3dd5d..3d8e66affb9 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -128,8 +128,8 @@ update llx_bank_url set type = 'payment_supplier' where label = '(paiement)' and create table llx_societe_adresse_livraison ( rowid integer AUTO_INCREMENT PRIMARY KEY, - tms timestamp, datec datetime, + tms timestamp, fk_societe integer DEFAULT 0, nom varchar(60), address varchar(255), @@ -142,5 +142,5 @@ create table llx_societe_adresse_livraison fk_user_modif integer )type=innodb; -alter table llx_societe_adresse_livraison add column label varchar(30) after datec; -alter table llx_societe_adresse_livraison add column datea datetime after datec; \ No newline at end of file +alter table llx_societe_adresse_livraison add column label varchar(30) after tms; +-- Le champ date modif existe deja sous le nom tms. alter table llx_societe_adresse_livraison add column datea datetime after datec; \ No newline at end of file diff --git a/mysql/tables/llx_societe_adresse_livraison.sql b/mysql/tables/llx_societe_adresse_livraison.sql index e41941aaef1..b8f12cbad43 100644 --- a/mysql/tables/llx_societe_adresse_livraison.sql +++ b/mysql/tables/llx_societe_adresse_livraison.sql @@ -24,9 +24,8 @@ create table llx_societe_adresse_livraison ( rowid integer AUTO_INCREMENT PRIMARY KEY, - tms timestamp, datec datetime, -- creation date - datea datetime, -- modification date + tms timestamp, -- modification date label varchar(30), -- fk_societe integer DEFAULT 0, -- nom varchar(60), -- company name