From 955a7dbceac2c139291745e2ea4b6a8df472eb61 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 29 Mar 2006 15:54:41 +0000 Subject: [PATCH] =?UTF-8?q?d=E9but=20ajout=20possibilit=E9=20de=20d=E9term?= =?UTF-8?q?iner=20si=20le=20contenu=20d'une=20cat=E9gorie=20sera=20visible?= =?UTF-8?q?=20ou=20=20non=20dans=20la=20liste=20des=20produits/services,?= =?UTF-8?q?=20ceci=20afin=20de=20pouvoir=20cacher=20les=20sous-produits=20?= =?UTF-8?q?=20par=20exemple.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/2.0.0-2.1.0.sql | 3 ++- mysql/tables/llx_categorie.sql | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index e126eb392a4..20f6871ca90 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -52,7 +52,8 @@ create table llx_commande_fournisseur_model_pdf description text )type=innodb; -alter table llx_categorie add fk_statut smallint DEFAULT 0; +alter table llx_categorie drop column fk_statut; +alter table llx_categorie add visible tinyint DEFAULT 1 NOT NULL; alter table llx_actioncomm modify datea datetime; diff --git a/mysql/tables/llx_categorie.sql b/mysql/tables/llx_categorie.sql index b3b8f0c40e5..267c0d7b5de 100644 --- a/mysql/tables/llx_categorie.sql +++ b/mysql/tables/llx_categorie.sql @@ -27,5 +27,5 @@ create table llx_categorie rowid integer AUTO_INCREMENT PRIMARY KEY, label VARCHAR(255), -- nom de la catégorie description text, -- description de la catégorie - fk_statut smallint default 0 -- type et statut de la catégorie + visible tinyint DEFAULT 1 NOT NULL -- determine si les produits sont visible ou pas )type=innodb;