summaryrefslogtreecommitdiff
path: root/app/Schema
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-25 13:02:20 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-25 13:02:20 -0400
commit8142d43057939265d15317bc051ff149553ca727 (patch)
treeb4172f7dfd06702e9eac32b59a10a2f8669adbb4 /app/Schema
parent392a75fa0e76530c176d78b4e17a2834286616e3 (diff)
Add settings to disable subtask timer and another to not include closed tasks into CFD
Diffstat (limited to 'app/Schema')
-rw-r--r--app/Schema/Mysql.php8
-rw-r--r--app/Schema/Postgres.php8
-rw-r--r--app/Schema/Sqlite.php8
3 files changed, 21 insertions, 3 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index c62f3a72..47fb806e 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -6,7 +6,13 @@ use PDO;
use Core\Security;
use Model\Link;
-const VERSION = 80;
+const VERSION = 81;
+
+function version_81($pdo)
+{
+ $pdo->exec("INSERT INTO settings VALUES ('subtask_time_tracking', '1')");
+ $pdo->exec("INSERT INTO settings VALUES ('cfd_include_closed_tasks', '1')");
+}
function version_80($pdo)
{
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php
index b436db1b..6b85ff57 100644
--- a/app/Schema/Postgres.php
+++ b/app/Schema/Postgres.php
@@ -6,7 +6,13 @@ use PDO;
use Core\Security;
use Model\Link;
-const VERSION = 60;
+const VERSION = 61;
+
+function version_61($pdo)
+{
+ $pdo->exec("INSERT INTO settings VALUES ('subtask_time_tracking', '1')");
+ $pdo->exec("INSERT INTO settings VALUES ('cfd_include_closed_tasks', '1')");
+}
function version_60($pdo)
{
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index 23097b55..9e0575cf 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -6,7 +6,13 @@ use Core\Security;
use PDO;
use Model\Link;
-const VERSION = 76;
+const VERSION = 77;
+
+function version_77($pdo)
+{
+ $pdo->exec("INSERT INTO settings VALUES ('subtask_time_tracking', '1')");
+ $pdo->exec("INSERT INTO settings VALUES ('cfd_include_closed_tasks', '1')");
+}
function version_76($pdo)
{