total rebase
[anni] / priv / repo / migrations / 20170912114248_add_context_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.AddContextIndex do
6   use Ecto.Migration
7   @disable_ddl_transaction true
8
9   def change do
10     create(
11       index(:activities, ["(data->>'type')", "(data->>'context')"],
12         name: :activities_context_index,
13         concurrently: true
14       )
15     )
16   end
17 end