Unknown пре 11 година
родитељ
комит
8b6766ecbe
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      models/repo.go

+ 2 - 2
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
-	Uid    int64 `xorm:"UNIQUE(s)"`
-	RepoId int64 `xorm:"UNIQUE(s)"`
+	Uid    int64 `xorm:"UNIQUE(watch)"`
+	RepoId int64 `xorm:"UNIQUE(watch)"`
 }
 
 // Watch or unwatch repository.