fix: sequential versioning inference for migrations

This commit is contained in:
Austin Bonander 2025-02-27 18:30:43 -08:00
parent a9a4d00a80
commit ac7f270932

View File

@ -452,8 +452,8 @@ fn next_timestamp() -> String {
fn next_sequential(migrator: &Migrator) -> Option<String> {
let next_version = migrator
.migrations
.windows(2)
.last()
.rchunks(2)
.next()
.and_then(|migrations| {
match migrations {
[previous, latest] => {