Le champ weight étant optionnel, sa valeur par défaut doit etre null (qui signifie non renseigné ou inconnu) plutot que 0 (qui signifie connu et négligeable).
This commit is contained in:
parent
784ba0379a
commit
9bbf90a6f9
@ -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 gencode varchar(255) DEFAULT NULL;
|
||||||
alter table llx_product add weight real 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 '';
|
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);
|
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);
|
||||||
|
|||||||
@ -40,8 +40,8 @@ create table llx_product
|
|||||||
stock_commande integer DEFAULT 0,
|
stock_commande integer DEFAULT 0,
|
||||||
seuil_stock_alerte integer DEFAULT 0,
|
seuil_stock_alerte integer DEFAULT 0,
|
||||||
gencode varchar(255) DEFAULT NULL,
|
gencode varchar(255) DEFAULT NULL,
|
||||||
weight float DEFAULT 0,
|
weight real DEFAULT NULL,
|
||||||
weight_units tinyint(1) DEFAULT 0,
|
weight_units tinyint DEFAULT NULL,
|
||||||
canvas varchar(15) DEFAULT ''
|
canvas varchar(15) DEFAULT ''
|
||||||
)type=innodb;
|
)type=innodb;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user