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;