mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
fix: sequential versioning inference for migrations
This commit is contained in:
@@ -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] => {
|
||||
|
||||
Reference in New Issue
Block a user