summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190403131720_add_oauth_token_indexes.exs
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-04-08 09:18:01 +0000
committerlambda <lain@soykaf.club>2019-04-08 09:18:01 +0000
commitb4da2bc1d009ecca0d7821abe3577d1a920c41c0 (patch)
treec75ce1ec6e70724c29efe540a2439de635abc160 /priv/repo/migrations/20190403131720_add_oauth_token_indexes.exs
parentcfa6e7289f5cfdb1fce17eb89bc0513ff624480d (diff)
parentb177e1e7f330ff1531be190949db7f75e378a449 (diff)
downloadpleroma-b4da2bc1d009ecca0d7821abe3577d1a920c41c0.tar.gz
pleroma-b4da2bc1d009ecca0d7821abe3577d1a920c41c0.zip
Merge branch 'develop' into 'improve_upgrade_user_from_ap_id'
# Conflicts: # config/config.exs # docs/config.md
Diffstat (limited to 'priv/repo/migrations/20190403131720_add_oauth_token_indexes.exs')
-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