Electron100 / butane

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

rollback fails on sqlite when data exists #226

Open jayvdb opened 3 months ago

jayvdb commented 3 months ago

For the test being added in https://github.com/Electron100/butane/pull/223 , the sqlite backend fails if data is inserted.

thread 'migrate_and_rollback_sqlite' panicked at examples/getting_started/tests/rollback.rs:49:67:
rollback of 20240115_023841384_dbconstraints failed: Sqlite error FOREIGN KEY constraint failed

https://github.com/Electron100/butane/issues/166 may help resolve this.