summaryrefslogtreecommitdiff
path: root/app/Schema/Mysql.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-24 16:29:14 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-24 16:29:14 -0500
commit4fa38bf417dd7f1673f63641460092bd046d57b7 (patch)
tree6c3a0e7ea2638bd3224cfeb9c9cb1ed3d79f82b2 /app/Schema/Mysql.php
parent203754649e08dadeb631c2adfb0ccf4819dda941 (diff)
Add project owner
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r--app/Schema/Mysql.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index c98e083e..ad7f7be1 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -6,7 +6,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
-const VERSION = 101;
+const VERSION = 102;
+
+function version_102(PDO $pdo)
+{
+ $pdo->exec("ALTER TABLE projects ADD COLUMN owner_id INT DEFAULT 0");
+}
function version_101(PDO $pdo)
{