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
1 changed files with 9 additions and 0 deletions

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