From 0f282627568f7f8ed401506f291730f871fc538a Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 26 Aug 2006 06:55:17 +0000 Subject: Bug 350249: We don't need an index on bugs.short_desc Patch By Max Kanat-Alexander (module owner) a=myk --- Bugzilla/DB/Schema.pm | 1 - Bugzilla/Install/DB.pm | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 3967c8282..fb5fb9ce8 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -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'], ], }, diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 09aa5c323..f649686e7 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -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', -- cgit v1.2.3-24-g4f1b