hi,
In data migration you can set default values for mandatory fields in an upgrade. But how do you fix this when this new mandatory field is a reference to the fk of a new table. There are no records yet in this new table, so you have to create a dummy record. When the field is not mandatory I use a MANUAL code to insert the dummy record, but the MANUAL code is executed in the last part of the update process, so the constraints will error before you can insert the record.
How can we fix this?