diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | app/Schema/Mysql.php | 7 | ||||
-rw-r--r-- | app/Schema/Postgres.php | 7 |
3 files changed, 19 insertions, 2 deletions
@@ -1,3 +1,10 @@ +Unreleased +---------- + +Bug fixes: + +* Fix the "users.language" column size + Version 1.2.4 (May 16, 2018) ---------------------------- diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index efeefd9c..7d8c0993 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -8,7 +8,12 @@ use PDO; use Kanboard\Core\Security\Token; use Kanboard\Core\Security\Role; -const VERSION = 130; +const VERSION = 131; + +function version_131(PDO $pdo) +{ + $pdo->exec("ALTER TABLE `users` MODIFY `language` VARCHAR(11) DEFAULT NULL"); +} /* diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 598ea115..bd2ba1e1 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -8,7 +8,12 @@ use PDO; use Kanboard\Core\Security\Token; use Kanboard\Core\Security\Role; -const VERSION = 108; +const VERSION = 109; + +function version_109(PDO $pdo) +{ + $pdo->exec('ALTER TABLE "users" ALTER COLUMN "language" TYPE VARCHAR(11)'); +} function version_108(PDO $pdo) { |