forked from YokaiRick/akkoma
Merge branch 'fix/add-oauth-token-indexes' into 'develop'
adding indexes to oauth_tokens table See merge request pleroma/pleroma!1016
This commit is contained in:
commit
3c7f5bb1dc
1 changed files with 9 additions and 0 deletions
|
@ -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