Open TheTedder opened 1 month ago
Cat slugs are globally unique instead of unique to LBs.
Create a category with a slug that has been used for a different game but not the current game.
The category is created successfully.
The category fails to be created because its slug is "already used" by a different leaderboard.
Change the uniqueness constraint so that it includes the leaderboard_id field too.
leaderboard_id
Cat slugs are globally unique instead of unique to LBs.
Step(s) to Reproduce
Create a category with a slug that has been used for a different game but not the current game.
Expected Result
The category is created successfully.
Actual Outcome
The category fails to be created because its slug is "already used" by a different leaderboard.
How to Fix This
Change the uniqueness constraint so that it includes the
leaderboard_id
field too.