Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / priv / repo / migrations / 20171024121413_add_object_actor_index.exs
1 defmodule Pleroma.Repo.Migrations.AddObjectActorIndex do
2 use Ecto.Migration
3
4 @disable_ddl_transaction true
5
6 def change do
7 create index(:objects, ["(data->>'actor')", "(data->>'type')"], concurrently: true, name: :objects_actor_type)
8 end
9 end