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;