summaryrefslogtreecommitdiffstats
path: root/contrib
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 /contrib
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 'contrib')
-rwxr-xr-xcontrib/sanitizeme.pl10
1 files changed, 3 insertions, 7 deletions
diff --git a/contrib/sanitizeme.pl b/contrib/sanitizeme.pl
index c80069912..2e7613a6e 100755
--- a/contrib/sanitizeme.pl
+++ b/contrib/sanitizeme.pl
@@ -29,6 +29,7 @@ use lib qw(.);
use Bugzilla;
use Bugzilla::Bug;
use Bugzilla::Constants;
+use Bugzilla::Hook;
use Bugzilla::Util;
use List::MoreUtils qw(uniq);
@@ -87,6 +88,7 @@ eval {
delete_sensitive_user_data();
delete_attachment_data() unless $keep_attachments;
delete_bug_user_last_visit();
+ Bugzilla::Hook::process('db_sanitize');
disable_email_delivery() unless $enable_email;
print "All done!\n";
$dbh->bz_rollback_transaction() if $dry_run;
@@ -188,12 +190,6 @@ sub delete_sensitive_user_data {
$dbh->do("DELETE FROM ts_funcmap");
$dbh->do("DELETE FROM ts_job");
$dbh->do("DELETE FROM ts_note");
- # push extension messages
- $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");
}
sub delete_attachment_data {
@@ -203,7 +199,7 @@ sub delete_attachment_data {
}
sub delete_bug_user_last_visit {
- print "Removing all entries from bug_user_last_visit...\n"
+ print "Removing all entries from bug_user_last_visit...\n";
$dbh->do('TRUNCATE TABLE bug_user_last_visit');
}