Skip to content

Commit a937dab

Browse files
authored
Merge pull request #4 from lancer-kit/master
[Fixed] Apply all migrations to an empty database
2 parents 1d79231 + 6e0faf5 commit a937dab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

patch.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,9 @@ func ToApplyPatch(newMigrations []*MigrationPatch, current *MigrationPatch, dire
552552
break
553553
}
554554
}
555+
} else {
556+
hasNew = true
557+
index = 0
555558
}
556559

557560
if direction == Up {

0 commit comments

Comments
 (0)