diff options
author | Robin Lambertz <robinlambertz+dev@gmail.com> | 2016-06-27 10:58:53 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-06-27 16:58:53 +0800 |
commit | ac05f886413bb5f2ca97b9af8ad5209619c138c0 (patch) | |
tree | b7c97aaa139e50e44f5f10df977f5008f6a44abd /models/issue.go | |
parent | 4bbb878d20e9add712fd8f7a77490f3e0a51e2d6 (diff) | |
download | gitea-ac05f886413bb5f2ca97b9af8ad5209619c138c0.tar.gz gitea-ac05f886413bb5f2ca97b9af8ad5209619c138c0.zip |
Fix #3154 (#3155)
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go index f16382ba14..b161193118 100644 --- a/models/issue.go +++ b/models/issue.go @@ -32,8 +32,8 @@ var ( // Issue represents an issue or pull request of repository. type Issue struct { ID int64 `xorm:"pk autoincr"` - RepoID int64 `xorm:"INDEX"` - Index int64 // Index in one repository. + RepoID int64 `xorm:"INDEX UNIQUE(repo_index)"` + Index int64 `xorm:"UNIQUE(repo_index)"` // Index in one repository. Name string Repo *Repository `xorm:"-"` PosterID int64 |