diff options
Diffstat (limited to 'priv/repo')
| -rw-r--r-- | priv/repo/migrations/20190315101315_add_auth_provider_and_auth_provider_uid_to_users.exs | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/priv/repo/migrations/20190315101315_add_auth_provider_and_auth_provider_uid_to_users.exs b/priv/repo/migrations/20190315101315_add_auth_provider_and_auth_provider_uid_to_users.exs new file mode 100644 index 000000000..90947f85a --- /dev/null +++ b/priv/repo/migrations/20190315101315_add_auth_provider_and_auth_provider_uid_to_users.exs @@ -0,0 +1,12 @@ +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 | 
