<div dir="ltr"><div>Hello,<br></div>It's great you've highlighted this. I'm also for the opinion of using CASCADE!<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Kind Regards,<br><span style="color:rgb(106,168,79)"><span style="background-color:rgb(255,255,255)"><font size="2"><b><br></b></font></span></span><div style="font-size:small"><span style="color:rgb(106,168,79)"><b>WANJOHI KIBUI</b><br></span></div><div style="font-size:small"><span style="color:rgb(106,168,79)"><font size="2"><b>GIS Consultant<font color="rgb(34, 34, 34)"><i> <span style="color:rgb(106,168,79)">-</span></i></font> Developer and Trainer</b></font></span></div><div style="font-size:small"><span style="color:rgb(106,168,79)"><font size="2"><b><span style="font-family:"trebuchet ms",sans-serif">Mobile: +254 719 696921<br></span></b></font></span></div><div style="font-size:small"><b><span style="color:rgb(0,0,255)"><span style="font-family:"trebuchet ms",sans-serif"><span style="font-size:14px"><span style="color:rgb(106,168,79)"><font size="2">Website: </font></span></span></span></span></b><br><b><span style="color:rgb(0,0,255)"><span style="font-family:"trebuchet ms",sans-serif"><span style="font-size:14px"><span style="color:rgb(106,168,79)"><font size="2"><span><b><span style="color:rgb(0,0,255)"><span style="font-family:"trebuchet ms",sans-serif"><span style="font-size:14px"><span style="color:rgb(106,168,79)"><font size="2"><a href="http://www.lifeingis.com/" style="color:rgb(17,85,204)" target="_blank">w</a><a href="http://www.lifeingis.com/" style="color:rgb(17,85,204)" target="_blank">ww.lifeingis.com</a><br></font></span></span></span></span></b></span><a href="http://www.lifeingis.com/" style="color:rgb(17,85,204)" target="_blank">w</a><a href="http://www.geosymp.com/" style="color:rgb(17,85,204)" target="_blank">ww.geosymp.com</a><br><br></font></span></span></span></span></b><div style="text-align:center"><em>Knowing is not enough, we must apply. </em><em>Being willing is not enough, we must do.</em></div></div></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Dec 4, 2017 at 5:23 PM, John Gitau <span dir="ltr"><<a href="mailto:gkahiu@gmail.com" target="_blank">gkahiu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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>
<br>______________________________<wbr>_________________<br>
STDM-dev mailing list<br>
<a href="mailto:STDM-dev@lists.osgeo.org">STDM-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/stdm-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/stdm-dev</a><br>
<br></blockquote></div><br></div>