mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix: sequential versioning inference for migrations
This commit is contained in:
parent
a9a4d00a80
commit
ac7f270932
@ -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] => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user