Skip to content

Commit

Permalink
Let place for repoid in key
Browse files Browse the repository at this point in the history
  • Loading branch information
sapk committed Nov 27, 2017
1 parent ab0a3eb commit d13c73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/lfs_lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type LFSLock struct {
RepoID int64 `xorm:"UNIQUE(path_by_repo) INDEX NOT NULL"`
Owner *User `xorm:"-"`
OwnerID int64 `xorm:"INDEX NOT NULL"`
Path string `xorm:"VARCHAR(2048) UNIQUE(path_by_repo)"`
Path string `xorm:"VARCHAR(1024) UNIQUE(path_by_repo)"`
Created time.Time `xorm:"created"`
}

Expand Down

0 comments on commit d13c73e

Please sign in to comment.