Add correct index.
This commit is contained in:
parent
9cf38d6796
commit
07cee92cd4
|
@ -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
|
Loading…
Reference in a new issue