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

Force stable ordering of migration operations #155

Closed jayvdb closed 8 months ago

jayvdb commented 8 months ago

Preliminary work related to https://github.com/Electron100/butane/issues/21

The order of tables becomes important when the SQL for each table needs to refer to other tables. Especially for sqlite, where constraints need to be in the ADD TABLE and cant be added using ALTER TABLE c.f. https://www.sqlite.org/omitted.html