Scope/rename settings
This commit is contained in:
parent
85eb26903e
commit
a281dad418
|
@ -1,22 +1,22 @@
|
|||
plugins:
|
||||
voting_alert_votes_left:
|
||||
topic_voting_alert_votes_left:
|
||||
default: 10
|
||||
voting_enabled:
|
||||
topic_voting_enabled:
|
||||
default: true
|
||||
client: true
|
||||
voting_show_who_voted:
|
||||
topic_voting_show_who_voted:
|
||||
default: true
|
||||
client: true
|
||||
voting_show_votes_on_profile:
|
||||
topic_voting_show_votes_on_profile:
|
||||
default: true
|
||||
client: true
|
||||
voting_tl0_vote_limit:
|
||||
topic_voting_tl0_vote_limit:
|
||||
default: 2
|
||||
voting_tl1_vote_limit:
|
||||
topic_voting_tl1_vote_limit:
|
||||
default: 4
|
||||
voting_tl2_vote_limit:
|
||||
topic_voting_tl2_vote_limit:
|
||||
default: 6
|
||||
voting_tl3_vote_limit:
|
||||
topic_voting_tl3_vote_limit:
|
||||
default: 8
|
||||
voting_tl4_vote_limit:
|
||||
topic_voting_tl4_vote_limit:
|
||||
default: 10
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RenameTopicVotingSiteSettings < ActiveRecord::Migration[7.0]
|
||||
def up
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_alert_votes_left' WHERE name = 'voting_alert_votes_left_flags_after'"
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_enabled' WHERE name = 'voting_enabled_flags_after'"
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_show_who_voted' WHERE name = 'voting_show_who_voted_flags_after'"
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_show_votes_on_profile' WHERE name = 'voting_show_votes_on_profile_flags_after'"
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_tl0_vote_limit' WHERE name = 'voting_tl0_vote_limit_flags_after'"
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_tl1_vote_limit' WHERE name = 'voting_tl1_vote_limit_flags_after'"
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_tl2_vote_limit' WHERE name = 'voting_tl2_vote_limit_flags_after'"
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_tl3_vote_limit' WHERE name = 'voting_tl3_vote_limit_flags_after'"
|
||||
execute "UPDATE site_settings SET name = 'topic_voting_tl4_vote_limit' WHERE name = 'voting_tl4_vote_limit_flags_after'"
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue