summaryrefslogtreecommitdiff
path: root/app/Schema/Postgres.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-11 20:51:40 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-11 20:51:40 -0500
commit76019d76287f174cb6bf81fe052dc5c5c53be46c (patch)
tree51398e06b6a96b9b91e4a90ce7871d44f93a4a70 /app/Schema/Postgres.php
parent0cd31abbc4e520d93bc4a0f5480dc898bbe5f25b (diff)
Add project owner support (allow user management to a regular user), see #316
Diffstat (limited to 'app/Schema/Postgres.php')
-rw-r--r--app/Schema/Postgres.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php
index 9493e60e..8f114616 100644
--- a/app/Schema/Postgres.php
+++ b/app/Schema/Postgres.php
@@ -5,7 +5,12 @@ namespace Schema;
use PDO;
use Core\Security;
-const VERSION = 17;
+const VERSION = 18;
+
+function version_18($pdo)
+{
+ $pdo->exec("ALTER TABLE project_has_users ADD COLUMN is_owner BOOLEAN DEFAULT '0'");
+}
function version_17($pdo)
{