Add correct index.

This commit is contained in:
Roger Braun 2017-06-20 16:25:28 +02:00
parent 9cf38d6796
commit 07cee92cd4

View file

@ -0,0 +1,8 @@
defmodule Pleroma.Repo.Migrations.AddObjectActivityIndexPartTwo do
use Ecto.Migration
def change do
drop index(:objects, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
create index(:activities, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
end
end