We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d33a96d commit 3c91f41Copy full SHA for 3c91f41
1 file changed
migrate.go
@@ -81,7 +81,7 @@ type Migration struct {
81
82
func (m Migration) Less(other *Migration) bool {
83
switch {
84
- case m.isNumeric() && other.isNumeric() && m.VersionInt()-other.VersionInt() != 0:
+ case m.isNumeric() && other.isNumeric() && m.VersionInt() != other.VersionInt():
85
return m.VersionInt() < other.VersionInt()
86
case m.isNumeric() && !other.isNumeric():
87
return true
0 commit comments