summaryrefslogtreecommitdiffstats
path: root/extensions/EditComments
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/EditComments
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/EditComments')
-rw-r--r--extensions/EditComments/Extension.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/extensions/EditComments/Extension.pm b/extensions/EditComments/Extension.pm
index a3769544f..fef1b7693 100644
--- a/extensions/EditComments/Extension.pm
+++ b/extensions/EditComments/Extension.pm
@@ -260,4 +260,11 @@ sub webservice {
$dispatch->{EditComments} = "Bugzilla::Extension::EditComments::WebService";
}
+sub db_sanitize {
+ my $dbh = Bugzilla->dbh;
+ print "Deleting edited comment histories...\n";
+ $dbh->do("DELETE FROM longdescs_activity");
+ $dbh->do("UPDATE longdescs SET edit_count=0");
+}
+
__PACKAGE__->NAME;