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;