]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 350249: We don't need an index on bugs.short_desc
authormkanat%bugzilla.org <>
Sat, 26 Aug 2006 06:55:17 +0000 (06:55 +0000)
committermkanat%bugzilla.org <>
Sat, 26 Aug 2006 06:55:17 +0000 (06:55 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk

Bugzilla/DB/Schema.pm
Bugzilla/Install/DB.pm

index 3967c82825db30986886df232d4ed0064f403d83..fb5fb9ce83a886f868579618eb9520ca61317ff6 100644 (file)
@@ -219,7 +219,6 @@ use constant ABSTRACT_SCHEMA => {
             bugs_target_milestone_idx => ['target_milestone'],
             bugs_qa_contact_idx       => ['qa_contact'],
             bugs_votes_idx            => ['votes'],
-            bugs_short_desc_idx       => ['short_desc'],
         ],
     },
 
index 09aa5c32326bc6ce23424938c06b2cc8f0f4b1ae..f649686e76c902b1cb1fa9c962be664f117d5cd9 100644 (file)
@@ -482,11 +482,7 @@ sub update_table_definitions {
     # 2006-08-19 LpSolit@gmail.com - Bug 87795
     $dbh->bz_alter_column('tokens', 'userid', {TYPE => 'INT3'});
 
-    my $sd_index = $dbh->bz_index_info('bugs', 'bugs_short_desc_idx');
-    if (!$sd_index || ($sd_index->{TYPE}  && $sd_index->{TYPE} eq 'FULLTEXT')) {
-        $dbh->bz_drop_index('bugs', 'bugs_short_desc_idx');
-        $dbh->bz_add_index('bugs', 'bugs_short_desc_idx', [qw(short_desc)]);
-    }
+    $dbh->bz_drop_index('bugs', 'bugs_short_desc_idx');
 
     # The profiles table was missing some defaults.
     $dbh->bz_alter_column('profiles', 'disabledtext',