Bug 350249: We don't need an index on bugs.short_desc

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk
This commit is contained in:
mkanat%bugzilla.org 2006-08-25 23:55:18 +00:00
Родитель 33911a1604
Коммит bfe7aed793
2 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -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'],
],
},

Просмотреть файл

@ -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',