projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ef5b3512537844c611c7395a85e436d2e929fe21
[akkoma]
/
migrations
/
20190213185600_data_migration_populate_o_auth_scopes.exs
1
defmodule Pleroma.Repo.Migrations.DataMigrationPopulateOAuthScopes do
2
use Ecto.Migration
3
4
def up do
5
for t <- [:oauth_authorizations, :oauth_tokens] do
6
execute("UPDATE #{t} SET scopes = apps.scopes FROM apps WHERE #{t}.app_id = apps.id;")
7
end
8
end
9
10
def down, do: :noop
11
end