Navigation Menu

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 f812d51 commit 3a23424
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( 'mantis_tag_table' ), 'name' ) );
$upgrade[] = Array( 'CreateIndexSQL', Array( 'idx_bug_tag_tag_id', db_get_table( 'mantis_bug_tag_table' ), 'tag_id' ) );
$upgrade[] = Array( 'CreateIndexSQL', Array( 'idx_email_id', db_get_table( 'mantis_email_table' ), 'email_id', array( 'DROP' ) ), Array( 'db_index_exists', Array( db_get_table( 'mantis_email_table' ), 'idx_email_id') ) );

0 comments on commit 3a23424

Please sign in to comment.