Add index for access_token (#21908)
The `token_last_eight` field has been used in `GetAccessTokenBySHA `:
This commit is contained in:
parent
e483ec3a00
commit
702f4b521e
3 changed files with 20 additions and 1 deletions
|
@ -66,7 +66,7 @@ type AccessToken struct {
|
|||
Token string `xorm:"-"`
|
||||
TokenHash string `xorm:"UNIQUE"` // sha256 of token
|
||||
TokenSalt string
|
||||
TokenLastEight string `xorm:"token_last_eight"`
|
||||
TokenLastEight string `xorm:"INDEX token_last_eight"`
|
||||
|
||||
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
|
||||
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue