summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091227112908_change_wiki_contents_text_limit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20091227112908_change_wiki_contents_text_limit.rb')
-rw-r--r--db/migrate/20091227112908_change_wiki_contents_text_limit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20091227112908_change_wiki_contents_text_limit.rb b/db/migrate/20091227112908_change_wiki_contents_text_limit.rb
index d60a9a846..6ca99d983 100644
--- a/db/migrate/20091227112908_change_wiki_contents_text_limit.rb
+++ b/db/migrate/20091227112908_change_wiki_contents_text_limit.rb
@@ -3,7 +3,7 @@ class ChangeWikiContentsTextLimit < ActiveRecord::Migration[4.2]
# Migrates MySQL databases only
# Postgres would raise an error (see http://dev.rubyonrails.org/ticket/3818)
# Not fixed in Rails 2.3.5
- if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
+ if Redmine::Database.mysql?
max_size = 16.megabytes
change_column :wiki_contents, :text, :text, :limit => max_size
change_column :wiki_content_versions, :data, :binary, :limit => max_size