mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
11 lines
230 B
Ruby
11 lines
230 B
Ruby
|
class AddLikeCountToPostMenu < ActiveRecord::Migration
|
||
|
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
|