diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index 699ca6193af..ec76f5e27b1 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -8,6 +8,14 @@ -- 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; +alter table llx_commande_fournisseur_dispatch drop index fk_commande_4; +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); + alter table llx_categorie add column type tinyint DEFAULT 1 NOT NULL; diff --git a/mysql/tables/llx_commande_fournisseur_dispatch.key.sql b/mysql/tables/llx_commande_fournisseur_dispatch.key.sql index cf893f979f7..3f848c9ffe2 100644 --- a/mysql/tables/llx_commande_fournisseur_dispatch.key.sql +++ b/mysql/tables/llx_commande_fournisseur_dispatch.key.sql @@ -18,4 +18,4 @@ -- $Id$ -- =================================================================== -ALTER TABLE llx_commande_fournisseur_dispatch ADD INDEX (fk_commande); \ No newline at end of file +ALTER TABLE llx_commande_fournisseur_dispatch ADD INDEX idx_commande_fournisseur_dispatch_fk_commande (fk_commande); \ No newline at end of file