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:
commit
84420d9439
1 changed files with 7 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue