From 2462716eb455299339416aa4d2c7f3179501c672 Mon Sep 17 00:00:00 2001 From: fappels Date: Tue, 12 Apr 2016 16:24:00 +0200 Subject: [PATCH] Fix migration script --- htdocs/install/mysql/migration/3.9.0-4.0.0.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql index 15de62fb3e8..eb2077c6dfa 100644 --- a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql +++ b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql @@ -359,7 +359,7 @@ CREATE TABLE llx_c_accounting_category ( ) ENGINE=innodb; ALTER TABLE llx_c_accounting_category ADD UNIQUE INDEX uk_c_accounting_category(code); - +UPDATE llx_accounting_account SET account_parent = '0' WHERE account_parent = ''; ALTER TABLE llx_accounting_account MODIFY COLUMN account_parent integer;