Add schema migration for Slack channel

This commit is contained in:
Frederic Guillot
2015-07-05 13:14:00 -04:00
parent aa2ca3342d
commit afab68b130
5 changed files with 30 additions and 13 deletions

View File

@@ -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)
{