FIX change column "account_parent" and missing modify column

This commit is contained in:
Regis Houssin 2018-08-03 13:53:12 +02:00
parent 94ffda8862
commit fa32e48b8a
2 changed files with 9 additions and 1 deletions

View File

@ -28,6 +28,14 @@
-- Note: fields with type BLOB/TEXT can't have default value.
-- Missing in 8.0 ?
ALTER TABLE llx_accounting_account MODIFY COLUMN fk_pcg_version varchar(32) NOT NULL;
ALTER TABLE llx_accounting_account MODIFY COLUMN account_number varchar(32) NOT NULL;
-- For 9.0
ALTER TABLE llx_accounting_account MODIFY COLUMN account_parent varchar(32) DEFAULT NULL;
ALTER TABLE llx_extrafields ADD COLUMN help text NULL;
ALTER TABLE llx_extrafields ADD COLUMN totalizable boolean DEFAULT FALSE after list;

View File

@ -29,7 +29,7 @@ create table llx_accounting_account
pcg_type varchar(20) NOT NULL, -- First part of Key for predefined groups
pcg_subtype varchar(20) NOT NULL, -- Second part of Key for predefined groups
account_number varchar(32) NOT NULL,
account_parent integer DEFAULT 0, -- Hierarchic parent.
account_parent varchar(32) DEFAULT NULL, -- Hierarchic parent.
label varchar(255) NOT NULL,
fk_accounting_category integer DEFAULT 0, -- ID of personalized group for report
fk_user_author integer DEFAULT NULL,