From 6d5ffaa848dcbc09538f79cb0cdea08f5306f4a4 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 18 May 2015 21:04:06 -0400 Subject: Send all Kanboard events to the webhook (breaking change) --- app/Schema/Sqlite.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'app/Schema/Sqlite.php') diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index 84892aaf..43fb136e 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -6,7 +6,16 @@ use Core\Security; use PDO; use Model\Link; -const VERSION = 69; +const VERSION = 70; + +function version_70($pdo) +{ + $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)'); + $rq->execute(array('webhook_url', '')); + + $pdo->exec("DELETE FROM settings WHERE option='webhook_url_task_creation'"); + $pdo->exec("DELETE FROM settings WHERE option='webhook_url_task_modification'"); +} function version_69($pdo) { -- cgit v1.2.3