diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-02-28 13:16:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-02-28 13:16:46 +0000 |
commit | 2641f8ba912ce6016fd329c8fa724289a8e8dae7 (patch) | |
tree | bc7f77b4d48ebcf84ae1cc72463004f7d6fe2989 /db | |
parent | b0ec39fc45d80ae8a74694b191cfdc2cac54b5bd (diff) | |
download | redmine-2641f8ba912ce6016fd329c8fa724289a8e8dae7.tar.gz redmine-2641f8ba912ce6016fd329c8fa724289a8e8dae7.zip |
Changeset comments set to longtext for handling comments > 64KB with Mysql (#16143).
git-svn-id: http://svn.redmine.org/redmine/trunk@12944 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20140228130325_change_changesets_comments_limit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20140228130325_change_changesets_comments_limit.rb b/db/migrate/20140228130325_change_changesets_comments_limit.rb new file mode 100644 index 000000000..dccc23757 --- /dev/null +++ b/db/migrate/20140228130325_change_changesets_comments_limit.rb @@ -0,0 +1,12 @@ +class ChangeChangesetsCommentsLimit < ActiveRecord::Migration + def up + if ActiveRecord::Base.connection.adapter_name =~ /mysql/i + max_size = 16.megabytes + change_column :changesets, :comments, :text, :limit => max_size + end + end + + def down + # no-op + end +end |