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/Postgres.php | |
| parent | aa2ca3342dc6783c7a0a679c11ac94213a7226bb (diff) | |
Add schema migration for Slack channel
Diffstat (limited to 'app/Schema/Postgres.php')
| -rw-r--r-- | app/Schema/Postgres.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index a3309068..62f22baa 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -6,7 +6,13 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 57; +const VERSION = 58; + +function version_58($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_57($pdo) { |
