move to 2.5.5
[anni] / priv / repo / migrations / 20171024121413_add_object_actor_index.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Repo.Migrations.AddObjectActorIndex do
6   use Ecto.Migration
7
8   @disable_ddl_transaction true
9
10   def change do
11     create(
12       index(:objects, ["(data->>'actor')", "(data->>'type')"],
13         concurrently: true,
14         name: :objects_actor_type
15       )
16     )
17   end
18 end