mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 15:02:43 +00:00
Create missing database indexes (#596)
This commit is contained in:
parent
1a7fc53c98
commit
84b7d29d34
13 changed files with 64 additions and 64 deletions
|
@ -90,11 +90,11 @@ type User struct {
|
|||
Salt string `xorm:"VARCHAR(10)"`
|
||||
|
||||
Created time.Time `xorm:"-"`
|
||||
CreatedUnix int64
|
||||
CreatedUnix int64 `xorm:"INDEX"`
|
||||
Updated time.Time `xorm:"-"`
|
||||
UpdatedUnix int64
|
||||
UpdatedUnix int64 `xorm:"INDEX"`
|
||||
LastLogin time.Time `xorm:"-"`
|
||||
LastLoginUnix int64
|
||||
LastLoginUnix int64 `xorm:"INDEX"`
|
||||
|
||||
// Remember visibility choice for convenience, true for private
|
||||
LastRepoVisibility bool
|
||||
|
@ -102,7 +102,7 @@ type User struct {
|
|||
MaxRepoCreation int `xorm:"NOT NULL DEFAULT -1"`
|
||||
|
||||
// Permissions
|
||||
IsActive bool // Activate primary email
|
||||
IsActive bool `xorm:"INDEX"` // Activate primary email
|
||||
IsAdmin bool
|
||||
AllowGitHook bool
|
||||
AllowImportLocal bool // Allow migrate repository by local path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue