diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-12-02 20:49:30 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-12-02 20:49:30 -0500 |
commit | faef2e85d191a940782aed2f3142f79c20fab96c (patch) | |
tree | 4d26c03dac769b748535891a3e8daaa567b2026c /app/Schema | |
parent | f2fd5d75d98e01ab58a71b718d630b9b2ae8e16f (diff) |
Fix field too small for application settings
Diffstat (limited to 'app/Schema')
-rw-r--r-- | app/Schema/Mysql.php | 7 | ||||
-rw-r--r-- | app/Schema/Postgres.php | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index b50164ca..17285b12 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 = 116; +const VERSION = 117; + +function version_117(PDO $pdo) +{ + $pdo->exec("ALTER TABLE `settings` MODIFY `value` TEXT"); +} function version_116(PDO $pdo) { diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 83926f19..082c31eb 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 = 95; +const VERSION = 96; + +function version_96(PDO $pdo) +{ + $pdo->exec('ALTER TABLE "settings" ALTER COLUMN "value" TYPE TEXT'); +} function version_95(PDO $pdo) { |