From 5626869fd65b9f35c7d7c568fc6286554468ad63 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 8 Sep 2006 08:17:47 +0000 Subject: [PATCH] =?UTF-8?q?Modif:=20augmentation=20de=20la=20capacit=E9=20?= =?UTF-8?q?du=20champ=20"description"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/2.0.0-2.1.0.sql | 9 ++++++--- mysql/tables/llx_product.sql | 4 ++-- mysql/tables/llx_product_det.sql | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) 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;