Odonno / surrealdb-migrations

An awesome SurrealDB migration tool, with a user-friendly CLI and a versatile Rust library that enables seamless integration into any project.
https://crates.io/crates/surrealdb-migrations
MIT License
210 stars 16 forks source link

Implement support for "strict" mode #56

Closed turbohz closed 9 months ago

turbohz commented 10 months ago

Fixes https://github.com/Odonno/surrealdb-migrations/issues/55

Many tests work with the assumption that the database is in "sloppy" mode, and though I managed to fix plenty of them by tweaking helper functions, some would need more involved changes.

I'd need feedback on how to make more progress with this.

Odonno commented 10 months ago

This is really nice. Thank you for your effort @turbohz

Like I said, you can add --strict option in https://github.com/Odonno/surrealdb-migrations/blob/main/before-integration-tests.sh and then run tests to ensure they are still all green.

turbohz commented 10 months ago

All tests are passing in both strict and sloppy mode.