Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
94 stars 13 forks source link

rollback fails if db is not at latest migration #199

Closed jayvdb closed 6 months ago

jayvdb commented 7 months ago

Steps to reproduce:

  1. Create a migration "a"
  2. Migrate the database to "a"
  3. Create a migration "b"
  4. Run rollback

rollback will attempt to rollback "b" which isnt in the database, resulting in errors.

This occurs for both butane rollback and butane rollback a