From 44bc791eb3aa690940d540a7154d93dc8b10f186 Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Wed, 19 May 2010 09:28:37 -0700 Subject: Bug 494395: Implement the ability to mark custom fields as mandatory when creating/changing bugs r=mkanat, a=mkanat --- Bugzilla/Install/DB.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/Install/DB.pm') diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index fb199b2f0..0d9513ccf 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -108,6 +108,11 @@ sub update_fielddefs_definition { $dbh->do('UPDATE fielddefs SET buglist = 1 WHERE custom = 1 AND type = ' . FIELD_TYPE_MULTI_SELECT); + $dbh->bz_add_column('fielddefs', 'is_mandatory', + {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'}); + $dbh->bz_add_index('fielddefs', 'fielddefs_is_mandatory_idx', + ['is_mandatory']); + # Remember, this is not the function for adding general table changes. # That is below. Add new changes to the fielddefs table above this # comment. -- cgit v1.2.3-24-g4f1b