From 9e1dcf21dc5d65bcc4195f1ae4caedbe57835415 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 21 Jul 2014 20:32:12 -0230 Subject: Improve webhooks to call external url on task creation/modification --- app/Schema/Postgres.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/Schema/Postgres.php') diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index bc18bdca..a9eea531 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -4,7 +4,13 @@ namespace Schema; use Core\Security; -const VERSION = 2; +const VERSION = 3; + +function version_3($pdo) +{ + $pdo->exec("ALTER TABLE config ADD COLUMN webhooks_url_task_modification VARCHAR(255)"); + $pdo->exec("ALTER TABLE config ADD COLUMN webhooks_url_task_creation VARCHAR(255)"); +} function version_2($pdo) { -- cgit v1.2.3