mirror of
https://github.com/jtomchak/akkoma.git
synced 2025-03-21 10:27:47 +01:00
adding indexes to oauth_tokens table
This commit is contained in:
parent
7c003991d6
commit
86f90c0a54
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