Minor improvement for bug 451735

r=mkanat


git-svn-id: svn://10.0.0.236/trunk@261420 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2010-10-16 12:51:06 +00:00
parent ba8e9a0d70
commit 699ab97fe8
3 changed files with 2 additions and 4 deletions

View File

@@ -1 +1 @@
7545
7546

View File

@@ -941,8 +941,6 @@ sub bz_drop_index {
$self->_bz_real_schema->delete_index($table, $name);
$self->_bz_store_real_schema;
}
return $index_exists ? 1 : 0;
}
# bz_drop_index_raw($table, $name, $silent)

View File

@@ -772,7 +772,7 @@ sub bz_setup_database {
# despite it was still present in the DB. That's why we have to
# force the deletion, bypassing the DB schema.
if (!$self->bz_index_info('series', 'series_category_idx')) {
if (!$self->bz_drop_index('series', 'series_creator_idx')
if (!$self->bz_index_info('series', 'series_creator_idx')
&& $self->bz_index_info_real('series', 'series_creator_idx'))
{
foreach my $column (qw(creator category subcategory name)) {