Skip to content

Conversation

@alastair
Copy link
Member

We have a unique constraint on (user, sound_id) when category is null. When we delete a category we keep the bookmarks but remove the category. If there is already a bookmark for this sound with no category then we get a unique constraint error when trying to set a category to null. Delete any bookmarks from this category that would cause a problem before deleting the category.

Issue(s)
Fixes https://logserver.mtg.upf.edu/organizations/sentry/issues/4724

We have a unique constraint on (user, sound_id) when category is null.
When we delete a category we keep the bookmarks but remove the category.
If there is already a bookmark for this sound with no category then we
get a unique constraint error when trying to set a category to null.
Delete any bookmarks from this category that would cause a problem
before deleting the category.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants