summaryrefslogtreecommitdiffstats
path: root/models/login_source.go
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-01-06 13:14:33 -0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-06 23:14:33 +0800
commit84b7d29d34e0d51e0c67e2e35803e8e611da7965 (patch)
tree0f8a47ffac337f37fdf48f1b34c44b2ca269dd63 /models/login_source.go
parent1a7fc53c98f06f79955d217f91c8a5553e5a27b3 (diff)
downloadgitea-84b7d29d34e0d51e0c67e2e35803e8e611da7965.tar.gz
gitea-84b7d29d34e0d51e0c67e2e35803e8e611da7965.zip
Create missing database indexes (#596)
Diffstat (limited to 'models/login_source.go')
-rw-r--r--models/login_source.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/login_source.go b/models/login_source.go
index 58e0e88b3e..3fe5e172e3 100644
--- a/models/login_source.go
+++ b/models/login_source.go
@@ -120,13 +120,13 @@ type LoginSource struct {
ID int64 `xorm:"pk autoincr"`
Type LoginType
Name string `xorm:"UNIQUE"`
- IsActived bool `xorm:"NOT NULL DEFAULT false"`
+ IsActived bool `xorm:"INDEX NOT NULL DEFAULT false"`
Cfg core.Conversion `xorm:"TEXT"`
Created time.Time `xorm:"-"`
- CreatedUnix int64
+ CreatedUnix int64 `xorm:"INDEX"`
Updated time.Time `xorm:"-"`
- UpdatedUnix int64
+ UpdatedUnix int64 `xorm:"INDEX"`
}
// BeforeInsert is invoked from XORM before inserting an object of this type.