From: Ivan Tashkinov Date: Wed, 27 Mar 2019 13:20:50 +0000 (+0300) Subject: [#923] Enabled binding of multiple OAuth provider accounts to single user. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=642075b1a935c42181a10ea695b2289883126136;p=akkoma [#923] Enabled binding of multiple OAuth provider accounts to single user. --- diff --git a/priv/repo/migrations/20190315101315_create_registrations.exs b/priv/repo/migrations/20190315101315_create_registrations.exs index fbb22ec7c..6b28cbdd3 100644 --- a/priv/repo/migrations/20190315101315_create_registrations.exs +++ b/priv/repo/migrations/20190315101315_create_registrations.exs @@ -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