summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorIvan Tashkinov <ivant.business@gmail.com>2019-03-15 17:08:03 +0300
committerIvan Tashkinov <ivant.business@gmail.com>2019-03-15 17:08:03 +0300
commitaacbf0f57053786533df045125dee93ace0daa93 (patch)
treeef0dd0b1af36079fa3a2b424aaf8f91807e0d3ca /priv
parent63ab61ed3f4988bfaf9080bcdc4fc8d5046fa57e (diff)
downloadpleroma-aacbf0f57053786533df045125dee93ace0daa93.tar.gz
pleroma-aacbf0f57053786533df045125dee93ace0daa93.zip
[#923] OAuth: prototype of sign in / sign up with Twitter.
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20190315101315_add_auth_provider_and_auth_provider_uid_to_users.exs12
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