summaryrefslogtreecommitdiff
path: root/app/Schema/Sqlite.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-05 13:14:00 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-05 13:14:00 -0400
commitafab68b130ccdd97a7575a682683d6df71006748 (patch)
treed1c00cc280afbf257f1caafa42cb5e39110a2900 /app/Schema/Sqlite.php
parentaa2ca3342dc6783c7a0a679c11ac94213a7226bb (diff)
Add schema migration for Slack channel
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r--app/Schema/Sqlite.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index c3bbbac9..10899b54 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -6,7 +6,13 @@ use Core\Security;
use PDO;
use Model\Link;
-const VERSION = 73;
+const VERSION = 74;
+
+function version_74($pdo)
+{
+ $pdo->exec("ALTER TABLE project_integrations ADD COLUMN slack_webhook_channel TEXT DEFAULT ''");
+ $pdo->exec("INSERT INTO settings VALUES ('integration_slack_webhook_channel', '')");
+}
function version_73($pdo)
{