Skip to content

Commit 2988c10

Browse files
committed
Revert uniquess repoid+path
1 parent caf92f9 commit 2988c10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/lfs_lock.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717
// LFSLock represents a git lfs lock of repository.
1818
type LFSLock struct {
1919
ID int64 `xorm:"pk autoincr"`
20-
RepoID int64 `xorm:"UNIQUE(path_by_repo) INDEX NOT NULL"`
20+
RepoID int64 `xorm:"INDEX NOT NULL"`
2121
Owner *User `xorm:"-"`
2222
OwnerID int64 `xorm:"INDEX NOT NULL"`
23-
Path string `xorm:"TEXT UNIQUE(path_by_repo)"`
23+
Path string `xorm:"TEXT"`
2424
Created time.Time `xorm:"created"`
2525
}
2626

0 commit comments

Comments
 (0)