adding indexes to oauth_tokens table
This commit is contained in:
parent
7c003991d6
commit
86f90c0a54
|
@ -0,0 +1,9 @@
|
||||||
|
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
|
Loading…
Reference in a new issue