mirror of
https://github.com/pressly/goose.git
synced 2025-05-31 11:42:04 +00:00
remove obsolete version comparison
This commit is contained in:
parent
edaa9e3049
commit
85a0c8b565
@ -120,11 +120,6 @@ func collectMigrations(dirpath string, current, target int64) (mm *MigrationMap,
|
||||
|
||||
func versionFilter(v, current, target int64) bool {
|
||||
|
||||
// special case - default target value
|
||||
if target < 0 {
|
||||
return v > current
|
||||
}
|
||||
|
||||
if target > current {
|
||||
return v > current && v <= target
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user