diff options
author | lambda <lain@soykaf.club> | 2019-04-04 08:01:12 +0000 |
---|---|---|
committer | lambda <lain@soykaf.club> | 2019-04-04 08:01:12 +0000 |
commit | 3c7f5bb1dcf60475015094b73c5f41a2f0ffee6b (patch) | |
tree | 5980ff3ec5f32bbaed904971058b1cda0c1d511f | |
parent | c900ff39afa97b5ea24145611f42e8085e343db1 (diff) | |
parent | 86f90c0a54d8f0ee6e6a787e8d28ebc53ff13b05 (diff) | |
download | pleroma-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.exs | 9 |
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 |