aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-04-04 08:01:12 +0000
committerlambda <lain@soykaf.club>2019-04-04 08:01:12 +0000
commit3c7f5bb1dcf60475015094b73c5f41a2f0ffee6b (patch)
tree5980ff3ec5f32bbaed904971058b1cda0c1d511f
parentc900ff39afa97b5ea24145611f42e8085e343db1 (diff)
parent86f90c0a54d8f0ee6e6a787e8d28ebc53ff13b05 (diff)
downloadpleroma-3c7f5bb1dcf60475015094b73c5f41a2f0ffee6b.tar.gz
Merge branch 'fix/add-oauth-token-indexes' into 'develop'
adding indexes to oauth_tokens table See merge request pleroma/pleroma!1016
-rw-r--r--priv/repo/migrations/20190403131720_add_oauth_token_indexes.exs9
1 files 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
new file mode 100644
index 000000000..ebcd29389
--- /dev/null
+++ 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