diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-04-08 21:19:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 21:19:01 +0200 |
commit | e8f272c6f79dc8a919911d88a5b455bc67792f64 (patch) | |
tree | 01f8cd3965e1db810573f65508ded737d86d82fd /Bugzilla/Group.pm | |
parent | 3293a1f85c9e20893e6823d1f83b667ec9ca9534 (diff) | |
download | bugzilla-e8f272c6f79dc8a919911d88a5b455bc67792f64.tar.gz bugzilla-e8f272c6f79dc8a919911d88a5b455bc67792f64.tar.xz |
Bug 1427884 - Add upgrade tests from 4.2 to Harmony on mysql
Diffstat (limited to 'Bugzilla/Group.pm')
-rw-r--r-- | Bugzilla/Group.pm | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm index fe2a90c05..06491f6a0 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -26,17 +26,24 @@ use Scalar::Util qw(blessed); use constant IS_CONFIG => 1; -use constant DB_COLUMNS => qw( - groups.id - groups.name - groups.description - groups.isbuggroup - groups.userregexp - groups.isactive - groups.icon_url - groups.owner_user_id - groups.idle_member_removal -); +sub DB_COLUMNS { + my $class = shift; + my @columns = qw( + id + name + description + isbuggroup + userregexp + isactive + icon_url + owner_user_id + idle_member_removal + ); + my $dbh = Bugzilla->dbh; + my $table = $class->DB_TABLE; + + return map { "$table.$_" } grep { $dbh->bz_column_info($table, $_) } @columns; +} use constant DB_TABLE => 'groups'; |