diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-01-06 13:14:33 -0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-06 23:14:33 +0800 |
commit | 84b7d29d34e0d51e0c67e2e35803e8e611da7965 (patch) | |
tree | 0f8a47ffac337f37fdf48f1b34c44b2ca269dd63 /models/user.go | |
parent | 1a7fc53c98f06f79955d217f91c8a5553e5a27b3 (diff) | |
download | gitea-84b7d29d34e0d51e0c67e2e35803e8e611da7965.tar.gz gitea-84b7d29d34e0d51e0c67e2e35803e8e611da7965.zip |
Create missing database indexes (#596)
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/user.go b/models/user.go index 1dbd63dce0..201d8c48fa 100644 --- a/models/user.go +++ b/models/user.go @@ -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 |