From 6c772de184505ae339a970631c8e98f3e3b6e5f0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 27 Jun 2015 15:14:04 -0400 Subject: Remove column default_project_id for users because it's useless now --- app/Schema/Mysql.php | 7 ++++++- app/Schema/Postgres.php | 7 ++++++- app/Schema/Sqlite.php | 3 +-- 3 files changed, 13 insertions(+), 4 deletions(-) (limited to 'app/Schema') diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index dd6af5a2..0c932104 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -6,7 +6,12 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 76; +const VERSION = 77; + +function version_77($pdo) +{ + $pdo->exec('ALTER TABLE users DROP COLUMN `default_project_id`'); +} function version_76($pdo) { 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) { diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index feda8ec2..c3bbbac9 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -903,8 +903,7 @@ function version_1($pdo) id INTEGER PRIMARY KEY, username TEXT NOT NULL, password TEXT, - is_admin INTEGER DEFAULT 0, - default_project_id INTEGER DEFAULT 0 + is_admin INTEGER DEFAULT 0 ) "); -- cgit v1.2.3