summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20211229075801_user_relationships_target_id_relationship_type_index.exs
blob: f2290c5a65ee43d7a37c5b12b0486dbaca487a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Repo.Migrations.UserRelationshipsTargetIdRelationshipTypeIndex do
  use Ecto.Migration

  def change do
    create_if_not_exists(index(:user_relationships, [:target_id, :relationship_type]))
  end
end