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/webhook.go | |
parent | 1a7fc53c98f06f79955d217f91c8a5553e5a27b3 (diff) | |
download | gitea-84b7d29d34e0d51e0c67e2e35803e8e611da7965.tar.gz gitea-84b7d29d34e0d51e0c67e2e35803e8e611da7965.zip |
Create missing database indexes (#596)
Diffstat (limited to 'models/webhook.go')
-rw-r--r-- | models/webhook.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/models/webhook.go b/models/webhook.go index 2da88de2a4..c9c3c21a46 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -91,24 +91,24 @@ const ( // Webhook represents a web hook object. type Webhook struct { - ID int64 `xorm:"pk autoincr"` - RepoID int64 - OrgID int64 + ID int64 `xorm:"pk autoincr"` + RepoID int64 `xorm:"INDEX"` + OrgID int64 `xorm:"INDEX"` URL string `xorm:"url TEXT"` ContentType HookContentType Secret string `xorm:"TEXT"` Events string `xorm:"TEXT"` *HookEvent `xorm:"-"` IsSSL bool `xorm:"is_ssl"` - IsActive bool + IsActive bool `xorm:"INDEX"` HookTaskType HookTaskType Meta string `xorm:"TEXT"` // store hook-specific attributes LastStatus HookStatus // Last delivery status Created time.Time `xorm:"-"` - CreatedUnix int64 + CreatedUnix int64 `xorm:"INDEX"` Updated time.Time `xorm:"-"` - UpdatedUnix int64 + UpdatedUnix int64 `xorm:"INDEX"` } // BeforeInsert will be invoked by XORM before inserting a record |