diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-22 11:54:45 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-22 11:54:45 -0400 |
commit | 8e3618f4128e419e1522e48ccec27082d30e4de4 (patch) | |
tree | bbde5afa42f544010b07d81f92892c0b2fc2bb4c /app/Schema | |
parent | c9ba525bab06eff76b1d5fb8701848d0e3990122 (diff) |
Increase length of attachments file names (and truncate if really too long)
Diffstat (limited to 'app/Schema')
-rw-r--r-- | app/Schema/Mysql.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index aa611a6e..a65525c8 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 = 71; +const VERSION = 72; + +function version_72($pdo) +{ + $pdo->exec('ALTER TABLE files MODIFY name VARCHAR(255)'); +} function version_71($pdo) { |