summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190208131753_add_scope_to_o_auth_entities.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/20190208131753_add_scope_to_o_auth_entities.exs')
-rw-r--r--priv/repo/migrations/20190208131753_add_scope_to_o_auth_entities.exs11
1 files changed, 11 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190208131753_add_scope_to_o_auth_entities.exs b/priv/repo/migrations/20190208131753_add_scope_to_o_auth_entities.exs
new file mode 100644
index 000000000..809e9ab22
--- /dev/null
+++ b/priv/repo/migrations/20190208131753_add_scope_to_o_auth_entities.exs
@@ -0,0 +1,11 @@
+defmodule Pleroma.Repo.Migrations.AddScopeToOAuthEntities do
+ use Ecto.Migration
+
+ def change do
+ for t <- [:oauth_authorizations, :oauth_tokens] do
+ alter table(t) do
+ add :scope, :string
+ end
+ end
+ end
+end