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