From d6bd92f19f6c9f71eaef3f99b699b272ca880b51 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 16 Aug 2006 22:21:23 +0000 Subject: [PATCH] Ajout champ fk_user pour permettre evol future de boites selon le user --- mysql/migration/2.0.0-2.1.0.sql | 3 +++ mysql/tables/llx_boxes.sql | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index db5f3acb488..4ab08dc7415 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -336,6 +336,7 @@ alter table llx_user add column ldap_sid varchar(255) DEFAULT NULL; alter table llx_user add column statut tinyint DEFAULT 1; alter table llx_user add column lang varchar(6); +alter table llx_boxes add column fk_user integer; alter table llx_commande_fournisseur drop column fk_soc_contact; alter table llx_commande drop column fk_soc_contact; @@ -360,3 +361,5 @@ ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_categorie_ ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_product_rowid FOREIGN KEY (fk_product) REFERENCES llx_product (rowid); ALTER TABLE llx_categorie_product ADD PRIMARY KEY (fk_categorie, fk_product); + + diff --git a/mysql/tables/llx_boxes.sql b/mysql/tables/llx_boxes.sql index 4bfeb603937..3ca18850845 100644 --- a/mysql/tables/llx_boxes.sql +++ b/mysql/tables/llx_boxes.sql @@ -20,8 +20,8 @@ -- -- =========================================================================== -- --- position : 0-index.php, 1-left, 2-right --- +-- position : 0-index.php, 1-left, 2-right +-- box_order : Box sort order -- create table llx_boxes @@ -29,5 +29,6 @@ create table llx_boxes rowid integer AUTO_INCREMENT PRIMARY KEY, box_id integer NOT NULL, position smallint NOT NULL, - box_order smallint default 0 NOT NULL + box_order smallint default 0 NOT NULL, + fk_user integer )type=innodb;