akkoma/priv/repo/migrations/20190315101315_add_auth_provider_and_auth_provider_uid_to_users.exs

12 lines
304 B
Elixir

defmodule Pleroma.Repo.Migrations.AddAuthProviderAndAuthProviderUidToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :auth_provider, :string
add :auth_provider_uid, :string
end
create unique_index(:users, [:auth_provider, :auth_provider_uid])
end
end