Fix migration of type of field

This commit is contained in:
Laurent Destailleur 2020-03-22 19:48:53 +01:00
parent 8313ed9ee4
commit 226f4695cd
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.