summaryrefslogtreecommitdiff
path: root/app/Schema/Postgres.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-12 17:35:48 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-12 17:35:48 +0200
commit2e6a8d435f4fa73882224b465716360ee2e7c693 (patch)
tree9839a499905c350cd02d56454a25b90a79ede41f /app/Schema/Postgres.php
parentc3a0cf43430438bfe7e7b0ccccfadb72a74331d6 (diff)
Add settings field to control project columns (pull-request #244)
Diffstat (limited to 'app/Schema/Postgres.php')
-rw-r--r--app/Schema/Postgres.php11
1 files changed, 8 insertions, 3 deletions
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 (