mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Create missing database indexes (#596)
This commit is contained in:
committed by
Lunny Xiao
parent
1a7fc53c98
commit
84b7d29d34
@@ -21,11 +21,11 @@ type AccessToken struct {
|
||||
Sha1 string `xorm:"UNIQUE VARCHAR(40)"`
|
||||
|
||||
Created time.Time `xorm:"-"`
|
||||
CreatedUnix int64
|
||||
CreatedUnix int64 `xorm:"INDEX"`
|
||||
Updated time.Time `xorm:"-"` // Note: Updated must below Created for AfterSet.
|
||||
UpdatedUnix int64
|
||||
HasRecentActivity bool `xorm:"-"`
|
||||
HasUsed bool `xorm:"-"`
|
||||
UpdatedUnix int64 `xorm:"INDEX"`
|
||||
HasRecentActivity bool `xorm:"-"`
|
||||
HasUsed bool `xorm:"-"`
|
||||
}
|
||||
|
||||
// BeforeInsert will be invoked by XORM before inserting a record representing this object.
|
||||
|
Reference in New Issue
Block a user