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;