From 8b6766ecbee91f0dc8d7a5c20262b2e2d96bb694 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 7 May 2014 17:10:46 -0400 Subject: [PATCH] Bug fix --- models/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/repo.go b/models/repo.go index 640b6e723d..d187349921 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 - Uid int64 `xorm:"UNIQUE(s)"` - RepoId int64 `xorm:"UNIQUE(s)"` + Uid int64 `xorm:"UNIQUE(watch)"` + RepoId int64 `xorm:"UNIQUE(watch)"` } // Watch or unwatch repository.