summaryrefslogtreecommitdiffstats
path: root/contrib/sanitizeme.pl
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-05-20 08:19:51 +0200
committerDylan William Hardison <dylan@hardison.net>2014-05-28 16:52:47 +0200
commitb6b83df873a1509797235738e00f9e6307eca876 (patch)
tree2599c58a67bf67499d5c2d64c2854f8c7a4ef1e2 /contrib/sanitizeme.pl
parent038e6854b32ae3155018188d80f306599a1e9644 (diff)
downloadbugzilla-b6b83df873a1509797235738e00f9e6307eca876.tar.gz
bugzilla-b6b83df873a1509797235738e00f9e6307eca876.tar.xz
Bug 1000917 - Backport upstream bug 489028 to bmo/4.2 to allow user last visit searching
Diffstat (limited to 'contrib/sanitizeme.pl')
-rwxr-xr-xcontrib/sanitizeme.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/sanitizeme.pl b/contrib/sanitizeme.pl
index 28c2f38f2..c80069912 100755
--- a/contrib/sanitizeme.pl
+++ b/contrib/sanitizeme.pl
@@ -86,6 +86,7 @@ eval {
delete_security_groups();
delete_sensitive_user_data();
delete_attachment_data() unless $keep_attachments;
+ delete_bug_user_last_visit();
disable_email_delivery() unless $enable_email;
print "All done!\n";
$dbh->bz_rollback_transaction() if $dry_run;
@@ -201,6 +202,11 @@ sub delete_attachment_data {
$dbh->do("UPDATE attach_data SET thedata = ''");
}
+sub delete_bug_user_last_visit {
+ print "Removing all entries from bug_user_last_visit...\n"
+ $dbh->do('TRUNCATE TABLE bug_user_last_visit');
+}
+
sub disable_email_delivery {
# turn off email delivery for all users.
print "Turning off email delivery...\n";