Skip to content

Commit

Permalink
Fix #11487: Remove idx_email_id index on mantis_email_table
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
davidhicks committed Feb 18, 2010
1 parent cd4ef16 commit b695182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/schema.php
Expand Up @@ -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') ) );

0 comments on commit b695182

Please sign in to comment.