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
|
@ -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 New Issue