summaryrefslogtreecommitdiffstats
path: root/extensions/Push/Extension.pm
diff options
context:
space:
mode:
authorMary Umoh <umohm12@gmail.com>2017-06-21 22:16:00 +0200
committerDylan William Hardison <dylan@hardison.net>2017-06-21 22:16:00 +0200
commitd6f40ea57141f9b94910eb7600efbe9c5e006249 (patch)
treed37a884253e06b9546823a0b2b4d4619c126e5d7 /extensions/Push/Extension.pm
parent5cff02a403a608775b3d7d93c4d1276c4b33631e (diff)
downloadbugzilla-d6f40ea57141f9b94910eb7600efbe9c5e006249.tar.gz
bugzilla-d6f40ea57141f9b94910eb7600efbe9c5e006249.tar.xz
Bug 1371464 - Delete code for Aha push connector
* Add install_update_db to Extension.pm
Diffstat (limited to 'extensions/Push/Extension.pm')
-rw-r--r--extensions/Push/Extension.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/Push/Extension.pm b/extensions/Push/Extension.pm
index f682dea35..a5ec24639 100644
--- a/extensions/Push/Extension.pm
+++ b/extensions/Push/Extension.pm
@@ -656,4 +656,13 @@ sub db_sanitize {
$dbh->do("DELETE FROM push_options");
}
+
+sub install_update_db {
+ my $dbh = Bugzilla->dbh;
+ $dbh->do("DELETE FROM push_options WHERE connector = ?", undef, "Aha");
+ $dbh->do("DELETE FROM push_log WHERE connector = ?", undef, "Aha");
+ $dbh->do("DELETE FROM push_backlog WHERE connector = ?", undef, "Aha");
+ $dbh->do("DELETE FROM push_backoff WHERE connector = ?", undef, "Aha");
+}
+
__PACKAGE__->NAME;