diff options
Diffstat (limited to 'models/webhook.go')
-rw-r--r-- | models/webhook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/webhook.go b/models/webhook.go index e4e77490..9a5fece3 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -92,7 +92,7 @@ const ( // Webhook represents a web hook object. type Webhook struct { - ID int64 `xorm:"pk autoincr"` + ID int64 RepoID int64 OrgID int64 URL string `xorm:"url TEXT"` @@ -407,7 +407,7 @@ type HookResponse struct { // HookTask represents a hook task. type HookTask struct { - ID int64 `xorm:"pk autoincr"` + ID int64 RepoID int64 `xorm:"INDEX"` HookID int64 UUID string |