diff options
Diffstat (limited to 'models/access.go')
-rw-r--r-- | models/access.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/access.go b/models/access.go index 0d3259de..54816c7b 100644 --- a/models/access.go +++ b/models/access.go @@ -53,7 +53,7 @@ func ParseAccessMode(permission string) AccessMode { // that is not in this table is the real owner of a repository. In case of an organization // repository, the members of the owners team are in this table. type Access struct { - ID int64 `xorm:"pk autoincr"` + ID int64 UserID int64 `xorm:"UNIQUE(s)"` RepoID int64 `xorm:"UNIQUE(s)"` Mode AccessMode |