From 4bd4784819430d5ac9218427f009b59cf34b8ad7 Mon Sep 17 00:00:00 2001 From: eldy Date: Sun, 14 Aug 2011 02:28:16 +0200 Subject: [PATCH] Fix: Removed warning --- htdocs/install/mysql/migration/2.7.0-2.8.0.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/htdocs/install/mysql/migration/2.7.0-2.8.0.sql b/htdocs/install/mysql/migration/2.7.0-2.8.0.sql index adaa7179d55..3445fb58db4 100755 --- a/htdocs/install/mysql/migration/2.7.0-2.8.0.sql +++ b/htdocs/install/mysql/migration/2.7.0-2.8.0.sql @@ -195,3 +195,21 @@ ALTER TABLE llx_fichinterdet ADD INDEX idx_fichinterdet_fk_fichinter (fk_fichint ALTER TABLE llx_fichinterdet ADD CONSTRAINT fk_fichinterdet_fk_fichinter FOREIGN KEY (fk_fichinter) REFERENCES llx_fichinter (rowid); + +-- This was created into 2.9.0 but we need them to avoid errors of migration to 2.8 using new classes +alter table llx_facture add column localtax1 double(24,8) DEFAULT 0 after tva; +alter table llx_facture add column localtax2 double(24,8) DEFAULT 0 after localtax1; +alter table llx_facturedet add column localtax1_tx double(6,3) DEFAULT 0 after tva_tx; +alter table llx_facturedet add column localtax2_tx double(6,3) DEFAULT 0 after localtax1_tx; +alter table llx_facturedet add column total_localtax1 double(24,8) DEFAULT 0 after total_tva; +alter table llx_facturedet add column total_localtax2 double(24,8) DEFAULT 0 after total_localtax1; + + + +-- This was created into 3.0.0 but we need them to avoid errors of migration to 2.8 using new classes +ALTER TABLE llx_propaldet ADD COLUMN fk_parent_line integer NULL AFTER fk_propal; +ALTER TABLE llx_commandedet ADD COLUMN fk_parent_line integer NULL AFTER fk_commande; +ALTER TABLE llx_facturedet ADD COLUMN fk_parent_line integer NULL AFTER fk_facture; +ALTER TABLE llx_facturedet_rec ADD COLUMN fk_parent_line integer NULL AFTER fk_facture; + +