Merge branch 'backport/1.0-index-fix' into 'master'

Backport like index fix to 1.0

See merge request pleroma/pleroma!1740
This commit is contained in:
kaniini 2019-09-29 11:41:59 +00:00
commit a067cf0f23

View File

@ -0,0 +1,7 @@
defmodule Pleroma.Repo.Migrations.AddLikesIndexToObjects do
use Ecto.Migration
def change do
create_if_not_exists index(:objects, ["(data->'likes')"], using: :gin, name: :objects_likes)
end
end