From 584eb68723bde04a8bb3125710b48fe33820a352 Mon Sep 17 00:00:00 2001 From: ywarnier Date: Wed, 31 Jan 2007 19:10:20 +0000 Subject: [PATCH] Ajout update llx_facturedet pour changer champ fk_product en NULL --- mysql/migration/2.0.0-2.1.0.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index c53afe8fc7d..0b2b79b3717 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -155,8 +155,10 @@ ALTER TABLE llx_facturedet ADD COLUMN total_ht real AFTER price; ALTER TABLE llx_facturedet ADD COLUMN total_tva real AFTER total_ht; ALTER TABLE llx_facturedet ADD COLUMN total_ttc real AFTER total_tva; ALTER TABLE llx_facturedet ADD COLUMN info_bits integer DEFAULT 0 AFTER date_end; +ALTER TABLE llx_facturedet modify fk_product integer NULL; UPDATE llx_facturedet SET info_bits=0 where (fk_remise_except IS NULL OR fk_remise_except = 0); +UPDATE llx_facturedet SET fk_product=NULL where fk_product=0; ALTER TABLE llx_propaldet ADD COLUMN total_ht real AFTER price; ALTER TABLE llx_propaldet ADD COLUMN total_tva real AFTER total_ht;