summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-07 17:38:03 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-07 17:38:03 -0400
commit31fd45ba028dbebd2cec7c8658d06aa7eea28a77 (patch)
tree2c3575373d400c4995e9963edf721d85e9ef7317 /models
parentabd8c2a7ca040966f442c3c3e4b532f00b334ed3 (diff)
downloadgitea-31fd45ba028dbebd2cec7c8658d06aa7eea28a77.tar.gz
gitea-31fd45ba028dbebd2cec7c8658d06aa7eea28a77.zip
Bug fix
Diffstat (limited to 'models')
-rw-r--r--models/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index bdfe909cfb..f2460e1aa5 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -725,8 +725,8 @@ func GetCollaborators(repoName string) ([]string, error) {
// Watch is connection request for receiving repository notifycation.
type Watch struct {
Id int64
- UserId int64 `xorm:"UNIQUE(s)"`
- RepoId int64 `xorm:"UNIQUE(s)"`
+ UserId int64 `xorm:"UNIQUE(watch)"`
+ RepoId int64 `xorm:"UNIQUE(watch)"`
}
// Watch or unwatch repository.