diff options
| author | Frédéric Guillot <fred@kanboard.net> | 2014-10-05 19:40:57 -0400 |
|---|---|---|
| committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-05 19:40:57 -0400 |
| commit | d138834dcf902534f78237939926e97fd9a0eebe (patch) | |
| tree | a6247b9ed98079899c9e21d43044030b69088bee /app/Schema/Postgres.php | |
| parent | 7f5a871f84639a90eebd0ac1d0ee7f759e220cf6 (diff) | |
Regular users are able to create private projects
Diffstat (limited to 'app/Schema/Postgres.php')
| -rw-r--r-- | app/Schema/Postgres.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 90a3da40..fe2cce54 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -5,7 +5,12 @@ namespace Schema; use PDO; use Core\Security; -const VERSION = 11; +const VERSION = 12; + +function version_12($pdo) +{ + $pdo->exec("ALTER TABLE projects ADD COLUMN is_private BOOLEAN DEFAULT '0'"); +} function version_11($pdo) { |
