aboutsummaryrefslogtreecommitdiff
path: root/models/access.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/access.go')
-rw-r--r--models/access.go2
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