2022-02-26 00:11:42 -06:00
|
|
|
# Pleroma: A lightweight social networking server
|
|
|
|
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-12-29 02:41:21 -06:00
|
|
|
defmodule Pleroma.Repo.Migrations.UserRelationshipsTargetIdRelationshipTypeIndex do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
2021-12-29 02:44:33 -06:00
|
|
|
create_if_not_exists(index(:user_relationships, [:target_id, :relationship_type]))
|
2021-12-29 02:41:21 -06:00
|
|
|
end
|
|
|
|
end
|