Merge branch 'chore/user-relationships-target-id-rel-type-index' into 'develop'

Added index on [:target_id, :relationship_type] to :user_relationships

See merge request pleroma/pleroma!3588
This commit is contained in:
lain 2021-12-29 13:06:47 +00:00
commit 84420d9439
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
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