mirror of
https://github.com/pressly/goose.git
synced 2025-05-31 11:42:04 +00:00
Use a large enough constant to be later than '20130328010151' number format
This commit is contained in:
parent
66fbe2d01a
commit
df02edc595
@ -41,7 +41,7 @@ func downRun(cmd *Command, args ...string) {
|
||||
func getPreviousVersion(dirpath string, version int64) (previous, earliest int64) {
|
||||
|
||||
previous = -1
|
||||
earliest = (1 << 31) - 1
|
||||
earliest = (1 << 63) - 1
|
||||
|
||||
filepath.Walk(dirpath, func(name string, info os.FileInfo, err error) error {
|
||||
|
||||
@ -49,7 +49,6 @@ func getPreviousVersion(dirpath string, version int64) (previous, earliest int64
|
||||
if v > previous && v < version {
|
||||
previous = v
|
||||
}
|
||||
|
||||
if v < earliest {
|
||||
earliest = v
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user