From 13a251eab4eeb02a591a8b844fa4cf89e8aa3d7b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 28 Oct 2009 18:46:13 +0000 Subject: [PATCH] Fix: Wrong index name --- htdocs/install/mysql/migration/2.6.0-2.7.0.sql | 3 +++ htdocs/install/mysql/tables/llx_adherent_options.key.sql | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/2.6.0-2.7.0.sql b/htdocs/install/mysql/migration/2.6.0-2.7.0.sql index ab81825b80c..837fc16ba63 100644 --- a/htdocs/install/mysql/migration/2.6.0-2.7.0.sql +++ b/htdocs/install/mysql/migration/2.6.0-2.7.0.sql @@ -467,3 +467,6 @@ ALTER TABLE llx_c_methode_commande_fournisseur ADD UNIQUE INDEX uk_c_methode_com ALTER TABLE llx_menu change user usertype integer NOT NULL default '0'; +-- Rename index +ALTER TABLE llx_adherent_options DROP INDEX uk_adherent_options; +ALTER TABLE llx_adherent_options ADD INDEX idx_adherent_options (adhid); diff --git a/htdocs/install/mysql/tables/llx_adherent_options.key.sql b/htdocs/install/mysql/tables/llx_adherent_options.key.sql index 4a6d53f597f..c8522d21bd7 100644 --- a/htdocs/install/mysql/tables/llx_adherent_options.key.sql +++ b/htdocs/install/mysql/tables/llx_adherent_options.key.sql @@ -19,4 +19,4 @@ -- $Id$ -- =================================================================== -ALTER TABLE llx_adherent_options ADD INDEX uk_adherent_options (adhid); +ALTER TABLE llx_adherent_options ADD INDEX idx_adherent_options (adhid);