diff options
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/issue.go b/models/issue.go index cf49f173..ea7f3d22 100644 --- a/models/issue.go +++ b/models/issue.go @@ -16,8 +16,8 @@ import ( api "github.com/gogits/go-gogs-client" "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/tool" "github.com/gogits/gogs/pkg/setting" + "github.com/gogits/gogs/pkg/tool" ) var ( @@ -26,7 +26,7 @@ var ( // Issue represents an issue or pull request of repository. type Issue struct { - ID int64 `xorm:"pk autoincr"` + ID int64 RepoID int64 `xorm:"INDEX UNIQUE(repo_index)"` Repo *Repository `xorm:"-"` Index int64 `xorm:"UNIQUE(repo_index)"` // Index in one repository. @@ -1007,7 +1007,7 @@ func GetParticipantsByIssueID(issueID int64) ([]*User, error) { // IssueUser represents an issue-user relation. type IssueUser struct { - ID int64 `xorm:"pk autoincr"` + ID int64 UID int64 `xorm:"INDEX"` // User ID. IssueID int64 RepoID int64 `xorm:"INDEX"` |