From f575fc20ed8ee5c651ca45701d4eb610381e0c52 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 21 Feb 2006 09:58:04 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20champs=20fk=5Fstatut=20pour=20d=E9finir?= =?UTF-8?q?=20le=20type=20de=20cat=E9gorie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/2.0.0-2.1.0.sql | 2 ++ mysql/tables/llx_categorie.sql | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index 61ae10b2242..4bbe431b3dc 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -51,3 +51,5 @@ create table llx_commande_fournisseur_model_pdf libelle varchar(255), description text )type=innodb; + +alter table llx_categorie add fk_statut smallint DEFAULT 0; diff --git a/mysql/tables/llx_categorie.sql b/mysql/tables/llx_categorie.sql index 0a068d819d2..b3b8f0c40e5 100644 --- a/mysql/tables/llx_categorie.sql +++ b/mysql/tables/llx_categorie.sql @@ -1,6 +1,7 @@ -- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton +-- Copyright (C) 2005 Brice Davoleau +-- Copyright (C) 2005 Matthieu Valleton +-- Copyright (C) 2005-2006 Regis Houssin -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by @@ -23,7 +24,8 @@ create table llx_categorie ( - rowid integer AUTO_INCREMENT PRIMARY KEY, - label VARCHAR(255), - description text + 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 )type=innodb;