summaryrefslogtreecommitdiff
path: root/app/Schema/Sqlite.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-18 21:04:06 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-18 21:04:06 -0400
commit6d5ffaa848dcbc09538f79cb0cdea08f5306f4a4 (patch)
tree2b782b7bc4b7f25cfa9021f7250450c7534f86cb /app/Schema/Sqlite.php
parentdb95e96f92a15660dc043eb033a0f7737b59a030 (diff)
Send all Kanboard events to the webhook (breaking change)
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r--app/Schema/Sqlite.php11
1 files changed, 10 insertions, 1 deletions
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)
{