Skip to content

Commit

Permalink
FIX change column "account_parent" and missing modify column
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Aug 3, 2018
1 parent 94ffda8 commit fa32e48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions htdocs/install/mysql/migration/8.0.0-9.0.0.sql
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_accounting_account.sql
Expand Up @@ -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,
Expand Down

0 comments on commit fa32e48

Please sign in to comment.