From b69518231696fc59428a527dab6ae6db3ab0cc5d Mon Sep 17 00:00:00 2001 From: David Hicks Date: Fri, 19 Feb 2010 02:44:53 +1100 Subject: [PATCH] Fix #11487: Remove idx_email_id index on mantis_email_table The idx_email_id index on mantis_email_table is not necessary as it only covers the email_id column. The email_id column happens to be the primary key of the table and thus doesn't need another index (the primary key is already an index). --- admin/schema.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/schema.php b/admin/schema.php index aa9b956d70..1d9d7bd7ad 100644 --- a/admin/schema.php +++ b/admin/schema.php @@ -606,3 +606,4 @@ function installer_db_now() { /* 180 */ $upgrade[] = Array( 'CreateIndexSQL', Array( 'idx_tag_name', db_get_table( 'tag' ), 'name' ) ); $upgrade[] = Array( 'CreateIndexSQL', Array( 'idx_bug_tag_tag_id', db_get_table( 'bug_tag' ), 'tag_id' ) ); +$upgrade[] = Array( 'CreateIndexSQL', Array( 'idx_email_id', db_get_table( 'email' ), 'email_id', array( 'DROP' ) ), Array( 'db_index_exists', Array( db_get_table( 'email' ), 'idx_email_id') ) );