[#923] Registration validations & unique index on [:user_id, :provider].
This commit is contained in:
parent
8d21859717
commit
40e9a04c31
2 changed files with 2 additions and 0 deletions
|
|
@ -12,5 +12,6 @@ defmodule Pleroma.Repo.Migrations.CreateRegistrations do
|
|||
end
|
||||
|
||||
create unique_index(:registrations, [:provider, :uid])
|
||||
create unique_index(:registrations, [:user_id, :provider])
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue