Save user tokens as varchar(450) and not text to fix mysql indexing issues
This commit is contained in:
@ -41,7 +41,7 @@ const (
|
||||
type Token struct {
|
||||
ID int64 `xorm:"bigint autoincr not null unique pk"`
|
||||
UserID int64 `xorm:"not null"`
|
||||
Token string `xorm:"TEXT not null index"`
|
||||
Token string `xorm:"varchar(450) not null index"`
|
||||
Kind TokenKind `xorm:"not null"`
|
||||
Created time.Time `xorm:"created not null"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user