summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-10-02 16:48:08 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-10-02 16:48:08 +0200
commitfcc39a818dc14469d99314c7345f319d3921e861 (patch)
tree22cc13c8daa7ef37661d33ce00332abc69b76844 /Bugzilla
parent02a5cb53fe5dcfc5d8b9f3051cfd6e2a9b3511eb (diff)
downloadbugzilla-fcc39a818dc14469d99314c7345f319d3921e861.tar.gz
bugzilla-fcc39a818dc14469d99314c7345f319d3921e861.tar.xz
Bug 1196620: support automatic removal of inactive users from groups (schema only)
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB/Schema.pm1
-rw-r--r--Bugzilla/Install/DB.pm3
2 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index 1c765bb9e..1e7b04e28 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -1239,6 +1239,7 @@ use constant ABSTRACT_SCHEMA => {
REFERENCES => {
TABLE => 'profiles',
COLUMN => 'userid'}},
+ idle_member_removal => {TYPE => 'INT2', NOTNULL => 1, DEFAULT => '0'}
],
INDEXES => [
groups_name_idx => {FIELDS => ['name'], TYPE => 'UNIQUE'},
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 2d454b81a..794b7e6e7 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -756,6 +756,9 @@ sub update_table_definitions {
_migrate_group_owners();
+ $dbh->bz_add_column('groups', 'idle_member_removal',
+ {TYPE => 'INT2', NOTNULL => 1, DEFAULT => '0'});
+
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################