diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-02-14 00:29:29 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-02-14 00:29:29 +0300 |
commit | 063baca5e4f3a100c0d45dffb14e4968599ef43b (patch) | |
tree | 007c44ff7cd2c90b2e1c18d7ced704448fea5601 /priv/repo/migrations/20190208131753_add_scopes_to_o_auth_entities.exs | |
parent | a337bd114c3cbbb8e8270ec56a012e82f84df808 (diff) | |
download | pleroma-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.exs | 11 |
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 |