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:
lambda 2019-04-04 08:01:12 +00:00
commit 3c7f5bb1dc

View file

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