mirror of
https://github.com/pressly/goose.git
synced 2025-05-31 11:42:04 +00:00
previous test caught an error
This commit is contained in:
parent
93d928851d
commit
047beda98d
@ -205,6 +205,7 @@ func (m *MigrationMap) Sort(direction bool) {
|
||||
for _, v := range m.Versions {
|
||||
cur := m.Migrations[v]
|
||||
cur.Previous = previousV
|
||||
m.Migrations[v] = cur
|
||||
|
||||
// if a migration exists at prev, its next is now v
|
||||
if prev, ok := m.Migrations[previousV]; ok {
|
||||
|
Loading…
x
Reference in New Issue
Block a user