summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-09-18 07:20:05 +0200
committerByron Jones <glob@mozilla.com>2014-09-18 07:20:05 +0200
commit7b055b9f5a7f4250e6effb230bbfb1f7996b1904 (patch)
tree36addd4f6f9f268f32eb3d602ea4efeb6a28132e /extensions
parent4c16c871729ac606501c682419a9fd5d83727ae6 (diff)
downloadbugzilla-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')
-rw-r--r--extensions/BugmailFilter/Extension.pm20
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";