<div dir="ltr">Dear devs,<div><br></div><div>I came across an error when trying to delete a parent row whose value is referenced (as a foreign key) by one or more rows in a child table. The reason is because the default behaviour of the foreign key on delete has been set to NO ACTION during the creation of the foreign key. </div><div><br></div><div>What I would like to propose is to make the <a href="https://github.com/gltn/stdm/blob/master/data/configuration/columns.py#L693">ForeignKeyColumn</a> more flexible so that it accepts other options such as SET NULL, CASCADE or SET DEFAULT with SET NULL as the default. In addition, I would like to explicitly set CASCADE as the default option for foreign keys in the social tenure relationship table so that a tenure relation is automatically deleted if a party or spatial unit has been removed as it will no longer be valid.</div><div><br></div><div>Let me know your thoughts on this.</div><div><br></div><div>Regards,</div><div><br></div><div>John</div></div>