Fix: Clean data before migration

This commit is contained in:
Laurent Destailleur 2008-10-29 22:53:17 +00:00
parent a23602df8f
commit 4f47834ded

View File

@ -8,6 +8,7 @@
-- sans AUCUNE erreur ni warning
--
alter table llx_commande_fournisseur_dispatch drop index fk_commande;
alter table llx_commande_fournisseur_dispatch drop index fk_commande_2;
alter table llx_commande_fournisseur_dispatch drop index fk_commande_3;
@ -16,6 +17,8 @@ alter table llx_commande_fournisseur_dispatch drop index fk_commande_5;
ALTER TABLE llx_commande_fournisseur_dispatch ADD INDEX idx_commande_fournisseur_dispatch_fk_commande (fk_commande);
--V4.1 UPDATE llx_product_fournisseur_price set fk_user = null where fk_user not in (select rowid from llx_user);
--V4.1 delete llx_commande where fk_soc not in (select rowid fomr llx_societe);
alter table llx_categorie add column type tinyint DEFAULT 1 NOT NULL;