mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 22:03:45 +08:00
FIX: Remove google+ from share_links site setting
Follow-up to 2748822576
This commit is contained in:
parent
0744e84604
commit
f43345b75a
|
@ -0,0 +1,13 @@
|
|||
class RemoveGooglePlusFromShareLinksSiteSetting < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
execute <<~SQL
|
||||
UPDATE site_settings
|
||||
SET value = array_to_string(array_remove(regexp_split_to_array(value, '\\|'), 'google+'), '|')
|
||||
WHERE name = 'share_links'
|
||||
SQL
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user