From 0ef7f36b1964bc7d9ca2b09206895d04b30c0170 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 7 Nov 2009 08:47:01 +0000 Subject: [PATCH] Fix: delete old index --- htdocs/install/mysql/migration/2.6.0-2.7.0.sql | 3 +++ htdocs/install/mysql/tables/llx_adherent.key.sql | 1 - 2 files changed, 3 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 71e65520537..1ecd3585de2 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 @@ -480,4 +480,7 @@ 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 DROP INDEX adhid; ALTER TABLE llx_adherent_options ADD INDEX idx_adherent_options (adhid); + +ALTER TABLE llx_adherent DROP INDEX idx_adherent_fk_soc; diff --git a/htdocs/install/mysql/tables/llx_adherent.key.sql b/htdocs/install/mysql/tables/llx_adherent.key.sql index 94342e19463..4703aa32ddd 100644 --- a/htdocs/install/mysql/tables/llx_adherent.key.sql +++ b/htdocs/install/mysql/tables/llx_adherent.key.sql @@ -23,7 +23,6 @@ ALTER TABLE llx_adherent ADD UNIQUE INDEX uk_adherent_login (login, entity); ALTER TABLE llx_adherent ADD UNIQUE INDEX uk_adherent_fk_soc (fk_soc); -ALTER TABLE llx_adherent ADD INDEX idx_adherent_fk_soc (fk_soc); ALTER TABLE llx_adherent ADD INDEX idx_adherent_fk_adherent_type (fk_adherent_type); ALTER TABLE llx_adherent ADD CONSTRAINT adherent_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);