3volver@lemmy.world to Ask Lemmy@lemmy.world · 2 年前What's something you believed to be true but recently learned is actually false?message-squaremessage-square69fedilinkarrow-up176arrow-down13
arrow-up173arrow-down1message-squareWhat's something you believed to be true but recently learned is actually false?3volver@lemmy.world to Ask Lemmy@lemmy.world · 2 年前message-square69fedilink
minus-squareinvertedspear@lemm.eelinkfedilinkarrow-up24·2 年前I love how this comment covers super common misconceptions, but then throws a super specific database issue in at the end. Gotta have that cascade on delete, unless you want orphans.
minus-squaretowerful@programming.devlinkfedilinkarrow-up3·2 年前Or nullable FK , with on delete set null. Or have a default value for the FK, and on delete set default.
I love how this comment covers super common misconceptions, but then throws a super specific database issue in at the end. Gotta have that cascade on delete, unless you want orphans.
Or nullable FK , with on delete set null.
Or have a default value for the FK, and on delete set default.