diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index d00247410fb..df0eb95c03d 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -114,8 +114,8 @@ create table llx_product_det rowid integer AUTO_INCREMENT PRIMARY KEY, fk_product integer DEFAULT 0 NOT NULL, lang varchar(5) DEFAULT 0 NOT NULL, - label varchar(128), - description varchar(255), + label varchar(255), + description text, note text )type=innodb; @@ -424,4 +424,7 @@ ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_product_ro ALTER TABLE llx_categorie_product ADD PRIMARY KEY (fk_categorie, fk_product); - +alter table llx_product modify label varchar(255) NOT NULL; +alter table llx_product modify description text; +alter table llx_product_det modify label varchar(255) NOT NULL; +alter table llx_product_det modify description text; \ No newline at end of file diff --git a/mysql/tables/llx_product.sql b/mysql/tables/llx_product.sql index edf2b07f13e..aca298518ed 100644 --- a/mysql/tables/llx_product.sql +++ b/mysql/tables/llx_product.sql @@ -26,8 +26,8 @@ create table llx_product datec datetime, tms timestamp, ref varchar(16) NOT NULL, - label varchar(128), - description varchar(255), + label varchar(255) NOT NULL, + description text, note text, price double, tva_tx double, diff --git a/mysql/tables/llx_product_det.sql b/mysql/tables/llx_product_det.sql index 587649458cb..f3a69eaf711 100644 --- a/mysql/tables/llx_product_det.sql +++ b/mysql/tables/llx_product_det.sql @@ -25,7 +25,7 @@ create table llx_product_det rowid integer AUTO_INCREMENT PRIMARY KEY, fk_product integer DEFAULT 0 NOT NULL, lang varchar(5) DEFAULT 0 NOT NULL, - label varchar(128), - description varchar(255), + label varchar(255) NOT NULL, + description text, note text )type=innodb;