diff options
author | Unknwon <u@gogs.io> | 2017-05-21 04:36:41 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-05-21 04:36:41 -0400 |
commit | ce6e8ed8fe8bf82fef16996a7e0b90ce64755e08 (patch) | |
tree | 59150762f9d8fde5fc1be56d4b704b5201aae641 /models/attachment.go | |
parent | 1755025e7f5e3b9b4fd46e37a5d74f8e192f7bd2 (diff) |
models: remove redundant tags for primary keys
Diffstat (limited to 'models/attachment.go')
-rw-r--r-- | models/attachment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/attachment.go b/models/attachment.go index 583cb10b..fb4ec88d 100644 --- a/models/attachment.go +++ b/models/attachment.go @@ -20,7 +20,7 @@ import ( // Attachment represent a attachment of issue/comment/release. type Attachment struct { - ID int64 `xorm:"pk autoincr"` + ID int64 UUID string `xorm:"uuid UNIQUE"` IssueID int64 `xorm:"INDEX"` CommentID int64 |