Skip to content

Commit

Permalink
Revert uniquess repoid+path
Browse files Browse the repository at this point in the history
  • Loading branch information
sapk committed Nov 26, 2017
1 parent caf92f9 commit 2988c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/lfs_lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
// LFSLock represents a git lfs lock of repository.
type LFSLock struct {
ID int64 `xorm:"pk autoincr"`
RepoID int64 `xorm:"UNIQUE(path_by_repo) INDEX NOT NULL"`
RepoID int64 `xorm:"INDEX NOT NULL"`
Owner *User `xorm:"-"`
OwnerID int64 `xorm:"INDEX NOT NULL"`
Path string `xorm:"TEXT UNIQUE(path_by_repo)"`
Path string `xorm:"TEXT"`
Created time.Time `xorm:"created"`
}

Expand Down

0 comments on commit 2988c10

Please sign in to comment.