diff options
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 ) "); |