]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1268317 - Add Triage Contact to Components as an Editable Field (DB schema only)
authorDavid Lawrence <dkl@mozilla.com>
Tue, 27 Sep 2016 04:23:33 +0000 (04:23 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Tue, 27 Sep 2016 04:23:33 +0000 (04:23 +0000)
Bugzilla/DB/Schema.pm
Bugzilla/Install/DB.pm

index 39323bcb108ceb5df5084830d10cc5612fdb3629..e115dd555a473628609e93b35e456b464bba013b 100644 (file)
@@ -1433,8 +1433,12 @@ use constant ABSTRACT_SCHEMA => {
                                                 COLUMN => 'userid',
                                                 DELETE => 'SET NULL'}},
             description      => {TYPE => 'MEDIUMTEXT', NOTNULL => 1},
-            isactive         => {TYPE => 'BOOLEAN', NOTNULL => 1, 
+            isactive         => {TYPE => 'BOOLEAN', NOTNULL => 1,
                                  DEFAULT => 'TRUE'},
+            triage_owner_id  => {TYPE => 'INT3',
+                                 REFERENCES => {TABLE  => 'profiles',
+                                                COLUMN => 'userid',
+                                                DELETE => 'SET NULL'}},
         ],
         INDEXES => [
             components_product_id_idx => {FIELDS => [qw(product_id name)],
index ca59e778d7df78e24b5078932b4a2f084bba03c6..387e2468e8ec284c137ef8ba01c04970f24cfd95 100644 (file)
@@ -753,6 +753,10 @@ sub update_table_definitions {
 
     _migrate_preference_categories();
 
+    # 2016-09-01 dkl@mozilla.com - Bug 1268317
+    $dbh->bz_add_column('components', 'triage_owner_id',
+                        {TYPE => 'INT3'});
+
     ################################################################
     # New --TABLE-- changes should go *** A B O V E *** this point #
     ################################################################