Song record id updates #48

Closed
opened 2019-05-24 23:00:39 -04:00 by kdeng00 · 0 comments
kdeng00 commented 2019-05-24 23:00:39 -04:00 (Migrated from github.com)

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

### 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: phoenix/icarus#48