aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-26 06:20:34 +0000
committermkanat%bugzilla.org <>2006-08-26 06:20:34 +0000
commit011c5c09ce2cc7d09f5af75f86339f0d8889c5ba (patch)
tree65b5db3678a34159b9c6350fdfec8d036a8bfd3c /Bugzilla
parente2172f5b132a2be50d4203f88eb7c092a111db63 (diff)
downloadbugs-011c5c09ce2cc7d09f5af75f86339f0d8889c5ba.tar
bugs-011c5c09ce2cc7d09f5af75f86339f0d8889c5ba.tar.gz
bugs-011c5c09ce2cc7d09f5af75f86339f0d8889c5ba.tar.bz2
bugs-011c5c09ce2cc7d09f5af75f86339f0d8889c5ba.tar.xz
bugs-011c5c09ce2cc7d09f5af75f86339f0d8889c5ba.zip
Bug 350237: checksetup does not properly add a short_desc index to old installations
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install/DB.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 06c46e1ec..adf5b7c30 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -480,7 +480,7 @@ sub update_table_definitions {
$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} eq 'FULLTEXT') {
+ 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)]);
}