From 226f4695cd7157a5f2c1cb2cd55c549dd5e6ddd8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 22 Mar 2020 19:48:53 +0100 Subject: [PATCH] Fix migration of type of field --- htdocs/install/mysql/migration/11.0.0-12.0.0.sql | 2 +- htdocs/install/mysql/tables/llx_categorie.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/install/mysql/migration/11.0.0-12.0.0.sql b/htdocs/install/mysql/migration/11.0.0-12.0.0.sql index 9e575022ab6..dfbbc4d2e19 100644 --- a/htdocs/install/mysql/migration/11.0.0-12.0.0.sql +++ b/htdocs/install/mysql/migration/11.0.0-12.0.0.sql @@ -198,4 +198,4 @@ ALTER TABLE llx_entrepot ADD COLUMN phone varchar(20) DEFAULT NULL; ALTER TABLE llx_accounting_account ADD COLUMN reconcilable tinyint DEFAULT 0 NOT NULL after active; -ALTER TABLE llx_categorie CHANGE type type integer NOT NULL DEFAULT '1'; +ALTER TABLE llx_categorie MODIFY type integer NOT NULL DEFAULT 1; diff --git a/htdocs/install/mysql/tables/llx_categorie.sql b/htdocs/install/mysql/tables/llx_categorie.sql index ed1cb828363..c57c2adaa10 100644 --- a/htdocs/install/mysql/tables/llx_categorie.sql +++ b/htdocs/install/mysql/tables/llx_categorie.sql @@ -26,7 +26,7 @@ create table llx_categorie fk_parent integer DEFAULT 0 NOT NULL, label varchar(180) NOT NULL, -- category ref/name ref_ext varchar(255), -- reference into an external system (not used by dolibarr) - type tinyint DEFAULT 1 NOT NULL, -- category type (product, supplier, customer, member) + type integer DEFAULT 1 NOT NULL, -- category type (product, supplier, customer, member) description text, -- description of the category color varchar(8), -- color fk_soc integer DEFAULT NULL, -- not used by default. Used when option CATEGORY_ASSIGNED_TO_A_CUSTOMER is set.