summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190208131753_add_scopes_to_o_auth_entities.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-02-14 00:29:29 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-02-14 00:29:29 +0300
commit063baca5e4f3a100c0d45dffb14e4968599ef43b (patch)
tree007c44ff7cd2c90b2e1c18d7ced704448fea5601 /priv/repo/migrations/20190208131753_add_scopes_to_o_auth_entities.exs
parenta337bd114c3cbbb8e8270ec56a012e82f84df808 (diff)
downloadpleroma-063baca5e4f3a100c0d45dffb14e4968599ef43b.tar.gz
pleroma-063baca5e4f3a100c0d45dffb14e4968599ef43b.zip
[#468] User UI for OAuth permissions restriction. Standardized storage format for `scopes` fields, updated usages.
Diffstat (limited to 'priv/repo/migrations/20190208131753_add_scopes_to_o_auth_entities.exs')
-rw-r--r--priv/repo/migrations/20190208131753_add_scopes_to_o_auth_entities.exs11
1 files changed, 11 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190208131753_add_scopes_to_o_auth_entities.exs b/priv/repo/migrations/20190208131753_add_scopes_to_o_auth_entities.exs
new file mode 100644
index 000000000..4efbebc4d
--- /dev/null
+++ b/priv/repo/migrations/20190208131753_add_scopes_to_o_auth_entities.exs
@@ -0,0 +1,11 @@
+defmodule Pleroma.Repo.Migrations.AddScopeSToOAuthEntities do
+ use Ecto.Migration
+
+ def change do
+ for t <- [:oauth_authorizations, :oauth_tokens] do
+ alter table(t) do
+ add :scopes, {:array, :string}, default: [], null: false
+ end
+ end
+ end
+end