You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20091227112908_change_wiki_contents_text_limit.rb 490B

12345678910111213141516
  1. class ChangeWikiContentsTextLimit < ActiveRecord::Migration[4.2]
  2. def self.up
  3. # Migrates MySQL databases only
  4. # Postgres would raise an error (see http://dev.rubyonrails.org/ticket/3818)
  5. # Not fixed in Rails 2.3.5
  6. if Redmine::Database.mysql?
  7. max_size = 16.megabytes
  8. change_column :wiki_contents, :text, :text, :limit => max_size
  9. change_column :wiki_content_versions, :data, :binary, :limit => max_size
  10. end
  11. end
  12. def self.down
  13. # no-op
  14. end
  15. end