diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-27 15:14:04 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-27 15:14:04 -0400 |
commit | 6c772de184505ae339a970631c8e98f3e3b6e5f0 (patch) | |
tree | 47aaafd9ef996041c7857db72ad1d274d7b44c42 /app/Schema | |
parent | e6e286be8315345bed575712b338629e4ba76bcb (diff) |
Remove column default_project_id for users because it's useless now
Diffstat (limited to 'app/Schema')
-rw-r--r-- | app/Schema/Mysql.php | 7 | ||||
-rw-r--r-- | app/Schema/Postgres.php | 7 | ||||
-rw-r--r-- | app/Schema/Sqlite.php | 3 |
3 files changed, 13 insertions, 4 deletions
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 ) "); |