Project

General

Profile

Patch #34218 » 20240130052001_change_settings_value_limit.rb

for r22665 - Go MAEDA, 2024-01-30 06:25

 
1
class ChangeSettingsValueLimit < ActiveRecord::Migration[7.1]
2
  def up
3
    if Redmine::Database.mysql?
4
      max_size = 16.megabytes
5
      change_column :settings, :value, :text, :limit => max_size
6
    end
7
  end
8

    
9
  def down
10
    # no-op
11
  end
12
end
(2-2/2)