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 /extensions/ComponentWatching/Extension.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 'extensions/ComponentWatching/Extension.pm')
-rw-r--r-- | extensions/ComponentWatching/Extension.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/ComponentWatching/Extension.pm b/extensions/ComponentWatching/Extension.pm index 526ba1c5e..ed47e64c3 100644 --- a/extensions/ComponentWatching/Extension.pm +++ b/extensions/ComponentWatching/Extension.pm @@ -158,7 +158,9 @@ sub object_columns { my $columns = $args->{columns}; return unless $class->isa('Bugzilla::Component'); - push(@$columns, 'watch_user'); + if (Bugzilla->dbh->bz_column_info($class->DB_TABLE, 'watch_user')) { + push @$columns, 'watch_user'; + } } sub object_update_columns { |