diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index c6f3ca60afe..b53128b167d 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -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;