fixed deleting recurring appointments being broken #68
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Krautspace/calcifer#68
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-deleting-appointments"
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?
Fix for #65
Changed action for
ON DELETE
part of foreign key between relationsrepeated_events
andrepeated_events_log_entries
toCASCADE
, as this is probably what you want your DBMS to do when deleting recurring appointments.The change introduced with this PR only applies when the Calcifer database is newly generated. To fix the problem for an already deployed database, use the following SQL statement and replace <fk_name> with the actual name of the problematic foreign key.
@ikselven it would be great if you could add a migrations file for recreating the foreign key:
https://github.com/HackspaceJena/calcifer/tree/master/app/DoctrineMigrations