diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-05 13:14:00 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-05 13:14:00 -0400 |
commit | afab68b130ccdd97a7575a682683d6df71006748 (patch) | |
tree | d1c00cc280afbf257f1caafa42cb5e39110a2900 /app/Schema/Mysql.php | |
parent | aa2ca3342dc6783c7a0a679c11ac94213a7226bb (diff) |
Add schema migration for Slack channel
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r-- | app/Schema/Mysql.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index 0c932104..37ef637b 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -6,7 +6,13 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 77; +const VERSION = 78; + +function version_78($pdo) +{ + $pdo->exec("ALTER TABLE project_integrations ADD COLUMN slack_webhook_channel VARCHAR(255) DEFAULT ''"); + $pdo->exec("INSERT INTO settings VALUES ('integration_slack_webhook_channel', '')"); +} function version_77($pdo) { |