You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
steve@pop-os:~/Coding/rust_projects/webdev/bookmarks-rs$ sqlx migrate revert --dry-run --target-version 20240330153006 -D $DATABASE_URL/bookmarks
Can apply 20250905212818/revert test (0ns)
Can apply 20250428203929/revert mirror pinboard (0ns)
Skipped 20240330153006/revert use tag arrays (0ns)
It skips the target script, but reverts the others?
When I use the run command it behaves as I expected:
steve@pop-os:~/Coding/rust_projects/webdev/bookmarks-rs$ sqlx migrate run --dry-run --target-version 20240330153006 -D $DATABASE_URL/bookmarks
Can apply 20240330153006/migrate use tag arrays (0ns)
Skipped 20250428203929/migrate mirror pinboard (0ns)
Skipped 20250905212818/migrate test (0ns)
It runs the target and skips the others. I am showing my dry-run but the executed commands behaved the same.
Am I missing something? This revert behavior seems counterintuitive.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Why did this happen? Opposite of what I expected:
It skips the target script, but reverts the others?
When I use the
runcommand it behaves as I expected:It runs the target and skips the others. I am showing my
dry-runbut the executed commands behaved the same.Am I missing something? This
revertbehavior seems counterintuitive.Beta Was this translation helpful? Give feedback.
All reactions