alkem-io / alkemio

START HERE! Cross project collaboration and shared documentation.
European Union Public License 1.2
23 stars 4 forks source link

Cleanup usage of onDelete: 'CASCADE' in entity definitions #1212

Open alstojanovic opened 8 months ago

alstojanovic commented 8 months ago

We are using onDelete: 'CASCADE' option but we are always removing entities manually. This option results in typeorm not being able to generate accurate migration steps, mainly adding constraints.

We have 31 constraints with ON DELETE CASCADE option set. [] Evaluate on which constraints we want to use ON DELETE CASCADE if any