mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
UX: Merge settings related to muted tags. (#7656)
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class MergeRemoveMutedTagsFromLatestSiteSettings < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
execute "UPDATE site_settings SET value = 'always', data_type = 7 WHERE name = 'remove_muted_tags_from_latest' AND value = 't'"
|
||||
execute "UPDATE site_settings SET value = 'never', data_type = 7 WHERE name = 'remove_muted_tags_from_latest' AND value = 'f'"
|
||||
execute "DELETE FROM site_settings WHERE name = 'mute_other_present_tags'"
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user