From 4d20b7c3129684614522340945307389f6bd4cae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 31 May 2006 23:15:13 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Nettoyage=20champ=20mal=20initialis=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 b3549e05564..22817b89b5f 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -85,6 +85,8 @@ create table llx_product_det ALTER TABLE `llx_propal` ADD `date_livraison` DATE; ALTER TABLE `llx_commande` ADD `date_livraison` DATE; +update llx_commande set date_livraison = null where date_livraison = '0000-00-00'; +update llx_commande set date_livraison = null where date_livraison = '1970-01-01'; ALTER TABLE llx_facture_fourn_det ADD INDEX idx_facture_fourn_det_fk_facture (fk_facture_fourn); ALTER TABLE llx_facture_fourn_det ADD CONSTRAINT fk_facture_fourn_det_fk_facture FOREIGN KEY (fk_facture_fourn) REFERENCES llx_facture_fourn (rowid);