summaryrefslogtreecommitdiff
path: root/app/Schema/Postgres.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-07-08 15:07:07 -0300
committerFrédéric Guillot <fred@kanboard.net>2014-07-08 15:07:07 -0300
commitba93061f4d844214851d5a22b5a34022ce37e925 (patch)
treeff52678c22ee04a4ddebe6da5aa8a508abfaf6fd /app/Schema/Postgres.php
parent7a64053cb818931e38af8c9138a259a711ea4da7 (diff)
Add fields: task creator and modification date
Diffstat (limited to 'app/Schema/Postgres.php')
-rw-r--r--app/Schema/Postgres.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php
index 8ac6631c..bc18bdca 100644
--- a/app/Schema/Postgres.php
+++ b/app/Schema/Postgres.php
@@ -4,7 +4,13 @@ namespace Schema;
use Core\Security;
-const VERSION = 1;
+const VERSION = 2;
+
+function version_2($pdo)
+{
+ $pdo->exec("ALTER TABLE tasks ADD COLUMN creator_id INTEGER DEFAULT 0");
+ $pdo->exec("ALTER TABLE tasks ADD COLUMN date_modification INTEGER DEFAULT 0");
+}
function version_1($pdo)
{