Open jayvdb opened 10 months ago
sqlite does have "on update" support as well as "on delete" so that should be added to the design of this feature to get the design right the first time, so any breaking changes occur once.
sqlite , mysql, postgres all support
Django has the following options for on_delete
which they implement in Python, not using database constraints.
Now that we have db constraints on fkey and many due to https://github.com/Electron100/butane/pull/158, the next step is to add a cascade setting.
afaik, there are two options.
#[cascade(delete)]
type macroForeignKey(<field>, <optional cascade>)
The first seems easier to added in a non-breaking way. I've not thought more about it than that.