Merge pull request #5722 from atm-ph/fix_4.0_multicurrency_rate_entity

Fix miss entity column in llx_multicurrency_rate
This commit is contained in:
Juanjo Menent
2016-09-08 18:16:21 +02:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -541,3 +541,4 @@ INSERT INTO llx_c_forme_juridique (fk_pays, code, libelle, active) VALUES (178,
-- VMYSQL4.1 ALTER TABLE llx_establishment CHANGE COLUMN fk_user_mod fk_user_mod integer NULL;
-- VPGSQL8.2 ALTER TABLE llx_establishment ALTER COLUMN fk_user_mod DROP NOT NULL;
ALTER TABLE llx_multicurrency_rate ADD COLUMN entity integer DEFAULT 1;

View File

@@ -22,5 +22,6 @@ CREATE TABLE llx_multicurrency_rate
rowid integer AUTO_INCREMENT PRIMARY KEY,
date_sync datetime DEFAULT NULL,
rate double NOT NULL DEFAULT 0,
fk_multicurrency integer NOT NULL
fk_multicurrency integer NOT NULL,
entity integer DEFAULT 1,
) ENGINE=innodb;