summaryrefslogtreecommitdiffstats
path: root/extensions/Push
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-08-18 06:21:14 +0200
committerByron Jones <glob@mozilla.com>2014-08-18 06:21:14 +0200
commitfd08c8f3444e762415cd214ab22c3bb00356e743 (patch)
treef1e18b33dba26b51661077b0337adc2e4528f3a5 /extensions/Push
parent09d11313d8893a61e44b22acf2370d345cd643e2 (diff)
downloadbugzilla-fd08c8f3444e762415cd214ab22c3bb00356e743.tar.gz
bugzilla-fd08c8f3444e762415cd214ab22c3bb00356e743.tar.xz
Bug 1054832: past revisions of comments are not removed by the database sanisisation script
Diffstat (limited to 'extensions/Push')
-rw-r--r--extensions/Push/Extension.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/Push/Extension.pm b/extensions/Push/Extension.pm
index 3332df8e8..1d6ec5b62 100644
--- a/extensions/Push/Extension.pm
+++ b/extensions/Push/Extension.pm
@@ -645,4 +645,14 @@ sub install_filesystem {
};
}
+sub db_sanitize {
+ my $dbh = Bugzilla->dbh;
+ print "Deleting push extension logs and messages...\n";
+ $dbh->do("DELETE FROM push");
+ $dbh->do("DELETE FROM push_backlog");
+ $dbh->do("DELETE FROM push_backoff");
+ $dbh->do("DELETE FROM push_log");
+ $dbh->do("DELETE FROM push_options");
+}
+
__PACKAGE__->NAME;