mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
10 lines
269 B
Ruby
10 lines
269 B
Ruby
|
class RemoveLikeCountFromPostMenu < ActiveRecord::Migration[5.2]
|
||
|
def up
|
||
|
execute(<<~SQL)
|
||
|
UPDATE site_settings
|
||
|
SET value = REGEXP_REPLACE(REPLACE(REPLACE(value, 'like-count', ''), '||', '|'), '^\\|', '')
|
||
|
WHERE name = 'post_menu'
|
||
|
SQL
|
||
|
end
|
||
|
end
|