mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 11:25:24 +00:00
FIX: Automatically add like-count to post menu
This commit is contained in:
parent
160ee67620
commit
6f03aa164f
10
db/migrate/20150709021818_add_like_count_to_post_menu.rb
Normal file
10
db/migrate/20150709021818_add_like_count_to_post_menu.rb
Normal file
@ -0,0 +1,10 @@
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user