mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 13:39:36 -06:00
11 lines
235 B
Ruby
11 lines
235 B
Ruby
class AddLikeCountToPostMenu < ActiveRecord::Migration[4.2]
|
|
def up
|
|
execute <<SQL
|
|
UPDATE site_settings
|
|
SET value = replace(value, 'like', 'like-count|like')
|
|
WHERE name = 'post_menu'
|
|
AND value NOT LIKE '%like-count%'
|
|
SQL
|
|
end
|
|
end
|