[#923] Enabled binding of multiple OAuth provider accounts to single user.

This commit is contained in:
Ivan Tashkinov 2019-03-27 16:20:50 +03:00
parent 20e0f36605
commit 642075b1a9

View file

@ -13,6 +13,6 @@ defmodule Pleroma.Repo.Migrations.CreateRegistrations do
end
create unique_index(:registrations, [:provider, :uid])
create unique_index(:registrations, [:user_id, :provider])
create unique_index(:registrations, [:user_id, :provider, :uid])
end
end