Commit 27b4f887 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 368147: Upgrade from 2.16 and earlier does not work with DBD::mysql 4.0

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
parent 3ff9c9a3
...@@ -1381,7 +1381,8 @@ sub _convert_groups_system_from_groupset { ...@@ -1381,7 +1381,8 @@ sub _convert_groups_system_from_groupset {
# so all unique keys are removed first and then added back in # so all unique keys are removed first and then added back in
$dbh->bz_drop_index('groups', 'groups_bit_idx'); $dbh->bz_drop_index('groups', 'groups_bit_idx');
$dbh->bz_drop_index('groups', 'groups_name_idx'); $dbh->bz_drop_index('groups', 'groups_name_idx');
if ($dbh->primary_key(undef, undef, 'groups')) { my @primary_key = $dbh->primary_key(undef, undef, 'groups');
if (@primary_key) {
$dbh->do("ALTER TABLE groups DROP PRIMARY KEY"); $dbh->do("ALTER TABLE groups DROP PRIMARY KEY");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment