rpgkeeper
rpgkeeper copied to clipboard
[Bug Report] Deleting a character record leaves a note record
Currently, when you delete a character record from the database, it doesn't remove the corresponding note record. This seems to be because the column is set to ON DELETE RESTRICT.
This should be ON DELETE CASCADE.
To clarify, the desired behavior:
- If a
noteis referenced by acharacter, the note cannot be deleted. - If a
characteris deleted, the correspondingnoteis deleted.
Whatever database magic makes that happen is what we need.