Song record id updates #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Issue
When updating a song via the update endpoint, the song's id updates. It appears to update but what is really happening is that when the song's artist is changed to something that doesn't exist then it will delete the song record and create a new record with the updated foreign keys in place.
Solution
Disable Cascade on delete