Merge branch 'develop' into feature/digest-email
[akkoma] / priv / repo / migrations / 20190403131720_add_oauth_token_indexes.exs
1 defmodule Pleroma.Repo.Migrations.AddOauthTokenIndexes do
2 use Ecto.Migration
3
4 def change do
5 create(unique_index(:oauth_tokens, [:token]))
6 create(index(:oauth_tokens, [:app_id]))
7 create(index(:oauth_tokens, [:user_id]))
8 end
9 end