Closed S4G4R closed 1 year ago
Yeah, the documentation is misleading there. I'll update the docs, but I'd be open to switching the behavior to running the last applied migration. Would you be up for doing a PR for this by any chance? :)
Still relatively new to Clojure, but I will give it a go! :)
Sounds like a plan, and I'll try assist time permitting. :)
The documentation states :
Run 'down' for the last migration that was run.
Which would mean it should roll back the last migration that was applied.
Instead, I find that it rolls back according to the
id
(migration creation timestamp).Reproduction Steps :
A
->B
->C
)A
first, followed byC
and thenB
migratus.core/rollback
Result :
B
->C
->A
C
->B
->A