diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-06 15:05:24 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-06 15:05:24 -0500 |
commit | 7c355edc160f0ebdc4f4c2662dbb26703c5d4392 (patch) | |
tree | b25299fbf9d6b64af3ab7ec50c7ccd6ea01f9e4a /app/Schema/Postgres.php | |
parent | 8f6c064cd7652635751c91283f6b35f652f52885 (diff) |
Fix wrong column type for users.language
Diffstat (limited to 'app/Schema/Postgres.php')
-rw-r--r-- | app/Schema/Postgres.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 66d9acc1..23ed8405 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -6,7 +6,12 @@ use PDO; use Kanboard\Core\Security\Token; use Kanboard\Core\Security\Role; -const VERSION = 77; +const VERSION = 78; + +function version_78(PDO $pdo) +{ + $pdo->exec('ALTER TABLE "users" ALTER COLUMN "language" TYPE VARCHAR(5)'); +} function version_77(PDO $pdo) { |