diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-11-03 15:05:39 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-11-03 15:05:39 +0000 |
commit | 5802c68ffec22bf01bc866bd36ea7d02768b29ad (patch) | |
tree | e45a503d0354a6c506566ea6ff053463258e116c | |
parent | 0e877c081ff80292e1e1e6bca42a458f38deae4e (diff) | |
download | redmine-5802c68ffec22bf01bc866bd36ea7d02768b29ad.tar.gz redmine-5802c68ffec22bf01bc866bd36ea7d02768b29ad.zip |
Raises length of settings value for MySQL (#34218).
Patch by Go MAEDA (user:maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@23196 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | db/migrate/20241103150135_change_settings_value_limit.rb | 12 |
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 |