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 --- extensions/EditComments/Extension.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'extensions/EditComments') 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; -- cgit v1.2.3-24-g4f1b