summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install/DB.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index aa8e52109..00032d15b 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -1381,7 +1381,8 @@ sub _convert_groups_system_from_groupset {
# 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_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");
}