2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class AddLikeCountToPostMenu < ActiveRecord::Migration[4.2]
|
2015-07-08 22:21:59 -04:00
|
|
|
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
|