Gitlab: Run benchmark in CI.
[akkoma] / priv / repo / migrations / 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