summaryrefslogtreecommitdiff
path: root/app/Schema/Mysql.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-28 15:39:39 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-28 15:39:39 -0500
commite59be3dc021e81babaacf70661737cbba42c80cc (patch)
tree76fd26ca5ce17261927917699b6fb4e689df054e /app/Schema/Mysql.php
parentbcbc1b78c67860a1037e77a97c260899611adcdc (diff)
Add default project categories in settings
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r--app/Schema/Mysql.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index 7fc8da6a..4d155f26 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -5,7 +5,13 @@ namespace Schema;
use PDO;
use Core\Security;
-const VERSION = 38;
+const VERSION = 39;
+
+function version_39($pdo)
+{
+ $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)');
+ $rq->execute(array('project_categories', ''));
+}
function version_38($pdo)
{