]> source.dussan.org Git - redmine.git/commitdiff
Raises length of settings value for MySQL (#34218).
authorMarius Balteanu <marius.balteanu@zitec.com>
Sun, 3 Nov 2024 15:05:39 +0000 (15:05 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sun, 3 Nov 2024 15:05:39 +0000 (15:05 +0000)
Patch by Go MAEDA (user:maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@23196 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/20241103150135_change_settings_value_limit.rb [new file with mode: 0644]

diff --git a/db/migrate/20241103150135_change_settings_value_limit.rb b/db/migrate/20241103150135_change_settings_value_limit.rb
new file mode 100644 (file)
index 0000000..5fc2381
--- /dev/null
@@ -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