summaryrefslogtreecommitdiff
path: root/app/Schema/Mysql.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-06 15:05:24 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-06 15:05:24 -0500
commit7c355edc160f0ebdc4f4c2662dbb26703c5d4392 (patch)
treeb25299fbf9d6b64af3ab7ec50c7ccd6ea01f9e4a /app/Schema/Mysql.php
parent8f6c064cd7652635751c91283f6b35f652f52885 (diff)
Fix wrong column type for users.language
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r--app/Schema/Mysql.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index ac97e224..3bdcc5e4 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -6,7 +6,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
-const VERSION = 97;
+const VERSION = 98;
+
+function version_98(PDO $pdo)
+{
+ $pdo->exec('ALTER TABLE `users` MODIFY `language` VARCHAR(5)');
+}
function version_97(PDO $pdo)
{