mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Automatically add like-count to post menu
This commit is contained in:
parent
160ee67620
commit
6f03aa164f
1 changed files with 10 additions and 0 deletions
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…
Reference in a new issue