projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
92ab9bd2c6db68f310414c76f981392e938c0ba0
[akkoma]
/
20190222104808_data_migration_normalize_scopes.exs
1
defmodule Pleroma.Repo.Migrations.DataMigrationNormalizeScopes do
2
use Ecto.Migration
3
4
def up do
5
for t <- [:apps, :oauth_authorizations, :oauth_tokens] do
6
execute("UPDATE #{t} SET scopes = string_to_array(array_to_string(scopes, ' '), ' ');")
7
end
8
end
9
10
def down, do: :noop
11
end