Electron100 / butane

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

Can't use Many in renamed table #58

Closed joaommartins closed 1 year ago

joaommartins commented 1 year ago

When renaming a table like with the $[table = ""] attribute, it is not possible to follow many-to-many relationships from this table, as the load procedure ignores the renaming of the table and attempts to load the automatically many-to-many table using the struct name.

Migrations generation is not affected, since it correctly carries the renaming, generating the correct table for the renamed struct, as well for the many-to-many table.

joaommartins commented 1 year ago

Fixed by #59