Skip to content

Commit ac7f270

Browse files
committed
fix: sequential versioning inference for migrations
1 parent a9a4d00 commit ac7f270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlx-cli/src/opt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ fn next_timestamp() -> String {
452452
fn next_sequential(migrator: &Migrator) -> Option<String> {
453453
let next_version = migrator
454454
.migrations
455-
.windows(2)
456-
.last()
455+
.rchunks(2)
456+
.next()
457457
.and_then(|migrations| {
458458
match migrations {
459459
[previous, latest] => {

0 commit comments

Comments
 (0)