Skip to content
Snippets Groups Projects
Commit 86f90c0a authored by Alexander Strizhakov's avatar Alexander Strizhakov
Browse files

adding indexes to oauth_tokens table

parent 7c003991
No related branches found
No related tags found
No related merge requests found
defmodule Pleroma.Repo.Migrations.AddOauthTokenIndexes do
use Ecto.Migration
def change do
create(unique_index(:oauth_tokens, [:token]))
create(index(:oauth_tokens, [:app_id]))
create(index(:oauth_tokens, [:user_id]))
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment