summaryrefslogtreecommitdiff
path: root/app/Schema/Postgres.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-27 15:14:04 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-27 15:14:04 -0400
commit6c772de184505ae339a970631c8e98f3e3b6e5f0 (patch)
tree47aaafd9ef996041c7857db72ad1d274d7b44c42 /app/Schema/Postgres.php
parente6e286be8315345bed575712b338629e4ba76bcb (diff)
Remove column default_project_id for users because it's useless now
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 ac6ebf6f..a3309068 100644
--- a/app/Schema/Postgres.php
+++ b/app/Schema/Postgres.php
@@ -6,7 +6,12 @@ use PDO;
use Core\Security;
use Model\Link;
-const VERSION = 56;
+const VERSION = 57;
+
+function version_57($pdo)
+{
+ $pdo->exec('ALTER TABLE users DROP COLUMN "default_project_id"');
+}
function version_56($pdo)
{