FIX Missing columns in migration

This commit is contained in:
Laurent Destailleur 2016-05-26 21:17:43 +02:00
parent 97278c254e
commit db56e1b8a1
2 changed files with 9 additions and 0 deletions

View File

@ -350,6 +350,8 @@ ALTER TABLE llx_expensereport_det ADD COLUMN multicurrency_total_ht double(24,8)
ALTER TABLE llx_expensereport_det ADD COLUMN multicurrency_total_tva double(24,8) DEFAULT 0;
ALTER TABLE llx_expensereport_det ADD COLUMN multicurrency_total_ttc double(24,8) DEFAULT 0;
ALTER TABLE llx_expensereport_det ADD COLUMN fk_facture integer DEFAULT 0;
ALTER TABLE llx_product_lang ADD COLUMN import_key varchar(14) DEFAULT NULL;
ALTER TABLE llx_actioncomm MODIFY COLUMN elementtype varchar(255) DEFAULT NULL;

View File

@ -40,6 +40,13 @@ CREATE TABLE llx_expensereport_det
date date NOT NULL,
info_bits integer DEFAULT 0, -- TVA NPR ou non
special_code integer DEFAULT 0, -- code pour les lignes speciales
fk_multicurrency integer,
multicurrency_code varchar(255),
multicurrency_subprice double(24,8) DEFAULT 0,
multicurrency_total_ht double(24,8) DEFAULT 0,
multicurrency_total_tva double(24,8) DEFAULT 0,
multicurrency_total_ttc double(24,8) DEFAULT 0;
fk_facture integer DEFAULT 0, -- ID of customer invoice line if expense is rebilled to a customer
rang integer DEFAULT 0, -- position of line
import_key varchar(14)
) ENGINE=innodb;