Project

General

Profile

Patch #34218 » 20201104111101_change_settings_value_limit.rb

Increases size of value to long text - Aleksandar Pavic, 2020-11-03 11:21

 
class ChangeSettingsValueLimit < ActiveRecord::Migration[5.2]
def up
if Redmine::Database.mysql?
max_size = 16.megabytes
change_column :settings, :value, :text, :limit => max_size
end
end
def down
# no-op
end
end
(1-1/2)