From 9bbf90a6f971abd5fc8263396d6f29399433a37b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Dec 2006 09:04:09 +0000 Subject: [PATCH] =?UTF-8?q?Le=20champ=20weight=20=E9tant=20optionnel,=20sa?= =?UTF-8?q?=20valeur=20par=20d=E9faut=20doit=20etre=20null=20(qui=20signif?= =?UTF-8?q?ie=20non=20renseign=E9=20ou=20inconnu)=20plutot=20que=200=20(qu?= =?UTF-8?q?i=20signifie=20connu=20et=20n=E9gligeable).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/2.0.0-2.1.0.sql | 2 +- mysql/tables/llx_product.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index 5b463d90316..d1bc67f7b9d 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -61,7 +61,7 @@ UPDATE llx_societe set parent = null where parent = 0; alter table llx_product add gencode varchar(255) DEFAULT NULL; alter table llx_product add weight real DEFAULT NULL; -alter table llx_product add weight_units tinyint(1) DEFAULT 0; +alter table llx_product add weight_units tinyint DEFAULT NULL; alter table llx_product add canvas varchar(15) DEFAULT ''; insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (6,'PROFORMA', 6,1, 'Proforma','Réglement avant livraison',0,0); diff --git a/mysql/tables/llx_product.sql b/mysql/tables/llx_product.sql index 0901674891e..7031825d388 100644 --- a/mysql/tables/llx_product.sql +++ b/mysql/tables/llx_product.sql @@ -40,8 +40,8 @@ create table llx_product stock_commande integer DEFAULT 0, seuil_stock_alerte integer DEFAULT 0, gencode varchar(255) DEFAULT NULL, - weight float DEFAULT 0, - weight_units tinyint(1) DEFAULT 0, + weight real DEFAULT NULL, + weight_units tinyint DEFAULT NULL, canvas varchar(15) DEFAULT '' )type=innodb;