2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-03 17:21:20 +08:00

FIX: Add a DB migration to update font site settings types (#30813)

This PR is  a follow-up to #30636.

The previous change altered the `data_type` of the `base_font` and
`heading_font` site settings, but didn't update the corresponding
entries in the `site_settings` table to match.
This commit is contained in:
Gary Pendergast 2025-01-16 14:53:58 +11:00 committed by GitHub
parent f329acba71
commit a46d1547ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,10 @@
# frozen_string_literal: true
class UpdateFontSiteSettingsType < ActiveRecord::Migration[7.2]
def up
execute "UPDATE site_settings SET data_type=8 WHERE name IN('base_font', 'heading_font')"
end

def down
execute "UPDATE site_settings SET data_type=7 WHERE name IN('base_font', 'heading_font')"
end
end