index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
models
/
repo.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'models/repo.go')
-rw-r--r--
models/repo.go
4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index bdfe909c..f2460e1a 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.