summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20241103150135_change_settings_value_limit.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20241103150135_change_settings_value_limit.rb b/db/migrate/20241103150135_change_settings_value_limit.rb
new file mode 100644
index 000000000..5fc2381b4
--- /dev/null
+++ b/db/migrate/20241103150135_change_settings_value_limit.rb
@@ -0,0 +1,12 @@
+class ChangeSettingsValueLimit < ActiveRecord::Migration[7.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