From 1ac4d0edc92286101b1dfc7c6ec2432872cfad15 Mon Sep 17 00:00:00 2001 From: ywarnier Date: Fri, 15 Dec 2006 00:28:30 +0000 Subject: [PATCH] Ajout de llx_user_entrepot et llx_product_subproduct --- mysql/migration/2.0.0-2.1.0.sql | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index a3f25625f21..d0370a1d67a 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -584,4 +584,21 @@ create table llx_entrepot_valorisation key(fk_entrepot) )type=innodb; -ALTER TABLE llx_entrepot ADD COLUMN valo_pmp float(12,4) DEFAULT 0; \ No newline at end of file +ALTER TABLE llx_entrepot ADD COLUMN valo_pmp float(12,4) DEFAULT 0; + +create table llx_user_entrepot +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_entrepot integer UNSIGNED, -- pointe sur llx_entrepot + fk_user integer UNSIGNED, -- pointe sur llx_user + consult tinyint(1) UNSIGNED, + send tinyint(1) UNSIGNED +)type=innodb; + +create table llx_product_subproduct +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_product integer NOT NULL, -- id du produit maitre + fk_product_subproduct integer NOT NULL, -- id du sous-produit + UNIQUE(fk_product, fk_product_subproduct) +)type=innodb;