Skip to content

Commit ab0a3eb

Browse files
committed
Let place for repoid in key
1 parent ca344b5 commit ab0a3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/lfs_lock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type LFSLock struct {
2020
RepoID int64 `xorm:"UNIQUE(path_by_repo) INDEX NOT NULL"`
2121
Owner *User `xorm:"-"`
2222
OwnerID int64 `xorm:"INDEX NOT NULL"`
23-
Path string `xorm:"VARCHAR(3072) UNIQUE(path_by_repo)"`
23+
Path string `xorm:"VARCHAR(2048) UNIQUE(path_by_repo)"`
2424
Created time.Time `xorm:"created"`
2525
}
2626

0 commit comments

Comments
 (0)