summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2015-11-18 18:22:51 +0100
committerDylan Hardison <dylan@mozilla.com>2015-11-18 18:22:51 +0100
commit0f131638d9ce2f9f71a2a2f31ac01cd1c2513a7f (patch)
treef1564e29f31917148c5010d1b94477ec922f7940 /scripts
parentff70ecdae41e377659049612f5431fd911fc7e92 (diff)
downloadbugzilla-0f131638d9ce2f9f71a2a2f31ac01cd1c2513a7f.tar.gz
bugzilla-0f131638d9ce2f9f71a2a2f31ac01cd1c2513a7f.tar.xz
Bug 1225883 - remove user_request_log entries in sanitizeme.pl script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sanitizeme.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/sanitizeme.pl b/scripts/sanitizeme.pl
index c9dc814bd..64178f3f3 100755
--- a/scripts/sanitizeme.pl
+++ b/scripts/sanitizeme.pl
@@ -104,6 +104,7 @@ eval {
delete_sensitive_user_data();
delete_attachment_data() unless $keep_attachments;
delete_bug_user_last_visit();
+ delete_user_request_log();
Bugzilla::Hook::process('db_sanitize');
disable_email_delivery() unless $enable_email;
print "All done!\n";
@@ -221,6 +222,11 @@ sub delete_bug_user_last_visit {
$dbh->do('TRUNCATE TABLE bug_user_last_visit');
}
+sub delete_user_request_log {
+ print "Removing all entries from user_request_log...\n";
+ $dbh->do('TRUNCATE TABLE user_request_log');
+}
+
sub disable_email_delivery {
# turn off email delivery for all users.
print "Turning off email delivery...\n";