From 8e2fee02df303d4cce171b2e305330039989e854 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Wed, 18 Jul 2012 17:17:00 +0200 Subject: [PATCH] correct default definition for buy_price_ht in migration script --- htdocs/install/mysql/migration/3.2.0-3.3.0.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/install/mysql/migration/3.2.0-3.3.0.sql b/htdocs/install/mysql/migration/3.2.0-3.3.0.sql index 0340d70d64c..00d8979316d 100755 --- a/htdocs/install/mysql/migration/3.2.0-3.3.0.sql +++ b/htdocs/install/mysql/migration/3.2.0-3.3.0.sql @@ -45,15 +45,15 @@ ALTER TABLE llx_product_fournisseur_price ADD charges DOUBLE( 24, 8 ) DEFAULT 0 ALTER TABLE llx_product_fournisseur_price ADD unitcharges DOUBLE( 24, 8 ) DEFAULT 0 AFTER charges; alter table llx_commandedet add column fk_product_fournisseur_price int(11) after info_bits; -alter table llx_commandedet add column buy_price_ht double(24,8) after fk_product_fournisseur_price; +alter table llx_commandedet add column buy_price_ht double(24,8) DEFAULT 0 after fk_product_fournisseur_price; alter table llx_commandedet drop column marge_tx; alter table llx_commandedet drop column marque_tx; alter table llx_facturedet add column fk_product_fournisseur_price int(11) after info_bits; -alter table llx_facturedet add column buy_price_ht double(24,8) after fk_product_fournisseur_price; +alter table llx_facturedet add column buy_price_ht double(24,8) DEFAULT 0 after fk_product_fournisseur_price; alter table llx_propaldet add column fk_product_fournisseur_price int(11) after info_bits; -alter table llx_propaldet add column buy_price_ht double(24,8) after fk_product_fournisseur_price; +alter table llx_propaldet add column buy_price_ht double(24,8) DEFAULT 0 after fk_product_fournisseur_price; alter table llx_propaldet drop column pa_ht; alter table llx_propaldet drop column marge_tx; alter table llx_propaldet drop column marque_tx;