summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-04-19 19:59:37 +0200
committermkanat%bugzilla.org <>2007-04-19 19:59:37 +0200
commitd4e9172ad5f59d882ff372aff2cadd2c8c7f1ed3 (patch)
tree0ea78337de4f174d2bf7bb532c471fec402fa862 /Bugzilla/DB.pm
parent40e63525a8bda9132a4d2c0d296b2b7e89fe75de (diff)
downloadbugzilla-d4e9172ad5f59d882ff372aff2cadd2c8c7f1ed3.tar.gz
bugzilla-d4e9172ad5f59d882ff372aff2cadd2c8c7f1ed3.tar.xz
Bug 377564: Indexes are not renamed when renaming tables
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r--Bugzilla/DB.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index c87ecbdf5..b42672398 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -841,6 +841,17 @@ sub bz_table_columns {
return $self->_bz_real_schema->get_table_columns($table);
}
+sub bz_table_indexes {
+ my ($self, $table) = @_;
+ my $indexes = $self->_bz_real_schema->get_table_indexes_abstract($table);
+ my %return_indexes;
+ # We do this so that they're always hashes.
+ foreach my $name (keys %$indexes) {
+ $return_indexes{$name} = $self->bz_index_info($table, $name);
+ }
+ return \%return_indexes;
+}
+
#####################################################################
# Protected "Real Database" Schema Information Methods
#####################################################################