From ce6e8ed8fe8bf82fef16996a7e0b90ce64755e08 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 21 May 2017 04:36:41 -0400 Subject: models: remove redundant tags for primary keys --- models/attachment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/attachment.go') 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 -- cgit v1.2.3