Le champ weight tant optionnel, sa valeur par dfaut doit etre null (qui signifie non renseign ou inconnu) plutot que 0 (qui signifie connu et ngligeable).

This commit is contained in:
Laurent Destailleur 2006-12-08 09:04:09 +00:00
parent 784ba0379a
commit 9bbf90a6f9
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;