projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'domain-block-precedence' into 'develop'
[akkoma]
/
priv
/
repo
/
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