diff options
author | Byron Jones <glob@mozilla.com> | 2014-09-18 07:20:05 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-09-18 07:20:05 +0200 |
commit | 7b055b9f5a7f4250e6effb230bbfb1f7996b1904 (patch) | |
tree | 36addd4f6f9f268f32eb3d602ea4efeb6a28132e /extensions/BugmailFilter | |
parent | 4c16c871729ac606501c682419a9fd5d83727ae6 (diff) | |
download | bugzilla-7b055b9f5a7f4250e6effb230bbfb1f7996b1904.tar.gz bugzilla-7b055b9f5a7f4250e6effb230bbfb1f7996b1904.tar.xz |
Bug 1054141: add the ability to filter on the user that made the change
(schema only)
Diffstat (limited to 'extensions/BugmailFilter')
-rw-r--r-- | extensions/BugmailFilter/Extension.pm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/extensions/BugmailFilter/Extension.pm b/extensions/BugmailFilter/Extension.pm index 035de241c..f645d03ac 100644 --- a/extensions/BugmailFilter/Extension.pm +++ b/extensions/BugmailFilter/Extension.pm @@ -416,6 +416,15 @@ sub db_schema_abstract_schema { DELETE => 'CASCADE' }, }, + changer_id => { + TYPE => 'INT3', + NOTNULL => 0, + REFERENCES => { + TABLE => 'profiles', + COLUMN => 'userid', + DELETE => 'CASCADE' + }, + }, relationship => { TYPE => 'INT2', NOTNULL => 0, @@ -438,6 +447,17 @@ sub db_schema_abstract_schema { }; } +sub install_update_db { + Bugzilla->dbh->bz_add_column( + 'bugmail_filters', + 'changer_id', + { + TYPE => 'INT3', + NOTNULL => 0, + } + ); +} + sub db_sanitize { my $dbh = Bugzilla->dbh; print "Deleting bugmail filters...\n"; |