diff options
author | mkanat%bugzilla.org <> | 2007-04-19 19:59:37 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-04-19 19:59:37 +0200 |
commit | d4e9172ad5f59d882ff372aff2cadd2c8c7f1ed3 (patch) | |
tree | 0ea78337de4f174d2bf7bb532c471fec402fa862 /Bugzilla/DB | |
parent | 40e63525a8bda9132a4d2c0d296b2b7e89fe75de (diff) | |
download | bugzilla-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')
-rw-r--r-- | Bugzilla/DB/Schema.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 44bda1acb..844f0b0e8 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -1588,6 +1588,13 @@ sub get_table_columns { } #eosub--get_table_columns +sub get_table_indexes_abstract { + my ($self, $table) = @_; + my $table_def = $self->get_table_abstract($table); + my %indexes = @{$table_def->{INDEXES} || []}; + return \%indexes; +} + sub get_create_database_sql { my ($self, $name) = @_; return ("CREATE DATABASE $name"); |