diff options
author | Byron Jones <glob@mozilla.com> | 2015-02-02 05:38:16 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-02-02 05:38:16 +0100 |
commit | 1ccc683d4d94ea70e763fbd4af9721cb4bca1c0d (patch) | |
tree | 90ec8af17c49c130b0e817d2ef00c8c667dcb764 /extensions/BMO/Extension.pm | |
parent | e62f3072492aa55e626325e8889365b23c25892f (diff) | |
download | bugzilla-1ccc683d4d94ea70e763fbd4af9721cb4bca1c0d.tar.gz bugzilla-1ccc683d4d94ea70e763fbd4af9721cb4bca1c0d.tar.xz |
Bug 1123769: add a "rank" field to bugzilla to track priority
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r-- | extensions/BMO/Extension.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 75ca30d8d..97e31796c 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -834,6 +834,19 @@ sub install_update_db { # remove tables from the old TryAutoLand extension $dbh->bz_drop_table('autoland_branches'); $dbh->bz_drop_table('autoland_attachments'); + + unless (Bugzilla::Field->new({ name => 'cf_rank' })) { + Bugzilla::Field->create({ + name => 'cf_rank', + description => 'Rank', + type => FIELD_TYPE_INTEGER, + mailhead => 0, + enter_bug => 0, + obsolete => 0, + custom => 1, + buglist => 1, + }); + } } sub _last_closed_date { |