We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2988c10 commit b6acea8Copy full SHA for b6acea8
models/lfs_lock.go
@@ -17,10 +17,10 @@ import (
17
// LFSLock represents a git lfs lock of repository.
18
type LFSLock struct {
19
ID int64 `xorm:"pk autoincr"`
20
- RepoID int64 `xorm:"INDEX NOT NULL"`
+ RepoID int64 `xorm:"UNIQUE(path_by_repo) INDEX NOT NULL"`
21
Owner *User `xorm:"-"`
22
OwnerID int64 `xorm:"INDEX NOT NULL"`
23
- Path string `xorm:"TEXT"`
+ Path string `xorm:"VARCHAR(4096) UNIQUE(path_by_repo)"`
24
Created time.Time `xorm:"created"`
25
}
26
0 commit comments