Skip to content
Snippets Groups Projects
Commit 3c7f5bb1 authored by lain's avatar lain
Browse files

Merge branch 'fix/add-oauth-token-indexes' into 'develop'

adding indexes to oauth_tokens table

See merge request pleroma/pleroma!1016
parents c900ff39 86f90c0a
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