refactor: refs #8613 add fk to claimEnd.claimDestinationFk #3479
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3479
Loading…
Reference in New Issue
No description provided.
Delete Branch "8613-addFkClaimDestinationFk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
He puesto default 1 en el alter table y el update también a 1 porque me parece el mejor valor en caso de que no se pase ninguno. Explicación dada en el redmine. Si ves mejor otra opción lo modifico.
@ -0,0 +4,4 @@
FOREIGN KEY (claimDestinationFk)
REFERENCES claimDestination(id)
ON UPDATE CASCADE
ON DELETE CASCADE;
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.