2019-02-13 16:29:29 -05:00
|
|
|
defmodule Pleroma.Repo.Migrations.AddScopeSToOAuthEntities do
|
2019-02-09 09:09:08 -05:00
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
|
|
|
for t <- [:oauth_authorizations, :oauth_tokens] do
|
|
|
|
alter table(t) do
|
2019-02-13 16:29:29 -05:00
|
|
|
add :scopes, {:array, :string}, default: [], null: false
|
2019-02-09 09:09:08 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|