aboutsummaryrefslogtreecommitdiff
path: root/models/mirror.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-05-21 04:36:41 -0400
committerUnknwon <u@gogs.io>2017-05-21 04:36:41 -0400
commitce6e8ed8fe8bf82fef16996a7e0b90ce64755e08 (patch)
tree59150762f9d8fde5fc1be56d4b704b5201aae641 /models/mirror.go
parent1755025e7f5e3b9b4fd46e37a5d74f8e192f7bd2 (diff)
models: remove redundant tags for primary keys
Diffstat (limited to 'models/mirror.go')
-rw-r--r--models/mirror.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/mirror.go b/models/mirror.go
index 778632b4..f48e8efa 100644
--- a/models/mirror.go
+++ b/models/mirror.go
@@ -27,7 +27,7 @@ var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)
// Mirror represents mirror information of a repository.
type Mirror struct {
- ID int64 `xorm:"pk autoincr"`
+ ID int64
RepoID int64
Repo *Repository `xorm:"-"`
Interval int // Hour.