From 2e6a8d435f4fa73882224b465716360ee2e7c693 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 12 Sep 2014 17:35:48 +0200 Subject: Add settings field to control project columns (pull-request #244) --- app/Schema/Postgres.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'app/Schema/Postgres.php') diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index b58b9bb3..a7e57d66 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -4,7 +4,12 @@ namespace Schema; use Core\Security; -const VERSION = 6; +const VERSION = 7; + +function version_7($pdo) +{ + $pdo->exec("ALTER TABLE config ADD COLUMN default_columns VARCHAR(255) DEFAULT ''"); +} function version_6($pdo) { @@ -95,9 +100,9 @@ function version_1($pdo) $pdo->exec(" CREATE TABLE config ( language CHAR(5) DEFAULT 'en_US', - webhooks_token VARCHAR(255), + webhooks_token VARCHAR(255) DEFAULT '', timezone VARCHAR(50) DEFAULT 'UTC', - api_token VARCHAR(255) + api_token VARCHAR(255) DEFAULT '' ); CREATE TABLE users ( -- cgit v1.2.3