From fd08c8f3444e762415cd214ab22c3bb00356e743 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 18 Aug 2014 12:21:14 +0800 Subject: Bug 1054832: past revisions of comments are not removed by the database sanisisation script --- contrib/sanitizeme.pl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'contrib') 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'); } -- cgit v1.2.3-24-g4f1b