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