Add missing migration for #40588 that keeps the @wiki_tablesort_enabled@ setting unchanged for existing installations.

git-svn-id: https://svn.redmine.org/redmine/trunk@23828 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2025-06-11 19:45:39 +00:00
parent 774d58d326
commit 5a198c9057

View File

@@ -0,0 +1,8 @@
class EnsureWikiTablesortSettingIsStoredInDb < ActiveRecord::Migration[7.2]
def change
unless Setting.where(name: "wiki_tablesort_enabled").exists?
setting = Setting.new(:name => "wiki_tablesort_enabled", :value => 1)
setting.save!
end
end
end