refactor: refs #8613 add fk to claimEnd.claimDestinationFk #3479

Merged
ivanm merged 7 commits from 8613-addFkClaimDestinationFk into dev 2025-02-24 15:09:26 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 8e6eeca5e8 - Show all commits

View File

@ -4,4 +4,4 @@ ALTER TABLE vn.claimEnd
FOREIGN KEY (claimDestinationFk) FOREIGN KEY (claimDestinationFk)
REFERENCES claimDestination(id) REFERENCES claimDestination(id)
ON UPDATE CASCADE ON UPDATE CASCADE
ON DELETE CASCADE; ON DELETE RESTRICT;
ivanm marked this conversation as resolved Outdated

ací en delete restrict, perque si algu tira a borrar un tipo de claim destination, no volem que borre en cascada totes les claimEnd que hi haja.

ací en delete restrict, perque si algu tira a borrar un tipo de claim destination, no volem que borre en cascada totes les claimEnd que hi haja.