Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
3c7f5bb1
Commit
3c7f5bb1
authored
Apr 04, 2019
by
lain
Browse files
Merge branch 'fix/add-oauth-token-indexes' into 'develop'
adding indexes to oauth_tokens table See merge request
!1016
parents
c900ff39
86f90c0a
Pipeline
#9966
passed with stages
in 4 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
priv/repo/migrations/20190403131720_add_oauth_token_indexes.exs
0 → 100644
View file @
3c7f5bb1
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment