commit: 3c7f5bb1dcf60475015094b73c5f41a2f0ffee6b
parent c900ff39afa97b5ea24145611f42e8085e343db1
Author: lambda <lain@soykaf.club>
Date: Thu, 4 Apr 2019 08:01:12 +0000
Merge branch 'fix/add-oauth-token-indexes' into 'develop'
adding indexes to oauth_tokens table
See merge request pleroma/pleroma!1016
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/priv/repo/migrations/20190403131720_add_oauth_token_indexes.exs b/priv/repo/migrations/20190403131720_add_oauth_token_indexes.exs
@@ -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