Fix: On rend la rfrence produit obligatoire.

This commit is contained in:
Laurent Destailleur
2005-08-19 20:57:31 +00:00
parent 453e7d5304
commit f35237c426
2 changed files with 3 additions and 1 deletions

View File

@@ -394,6 +394,8 @@ alter table llx_entrepot add fk_pays integer DEFAULT 0;
alter table llx_product add stock_propale integer default 0;
alter table llx_product add stock_commande integer default 0;
alter table llx_product add seuil_stock_alerte integer default 0;
update llx_product set ref=substr(label,0,15) where ref is null;
alter table llx_product modify ref varchar(15) UNIQUE NOT NULL;
alter table llx_groupart add description text after groupart ;

View File

@@ -25,7 +25,7 @@ create table llx_product
rowid integer AUTO_INCREMENT PRIMARY KEY,
datec datetime,
tms timestamp,
ref varchar(15) UNIQUE,
ref varchar(15) UNIQUE NOT NULL,
label varchar(255),
description text,
price double,