[#923] Enabled binding of multiple OAuth provider accounts to single user.
authorIvan Tashkinov <ivant.business@gmail.com>
Wed, 27 Mar 2019 13:20:50 +0000 (16:20 +0300)
committerIvan Tashkinov <ivant.business@gmail.com>
Wed, 27 Mar 2019 13:20:50 +0000 (16:20 +0300)
priv/repo/migrations/20190315101315_create_registrations.exs

index fbb22ec7c5caec3b1ca746a7d4c292d73ee7d6f6..6b28cbdd32d4de695857de9987b6501074bc4e15 100644 (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