Merge pull request 'Manually define PATH for Arch Linux users in systemd unit' (...
[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(
8 index(:objects, ["(data->>'actor')", "(data->>'type')"],
9 concurrently: true,
10 name: :objects_actor_type
11 )
12 )
13 end
14 end