Skip to content

Commit

Permalink
Merge pull request ppy#186 from bdach/score-storage-updates
Browse files Browse the repository at this point in the history
Adjust end match database query in line with multiplayer score storage changes
  • Loading branch information
peppy authored Sep 5, 2023
2 parents 38c9f75 + 5f2e992 commit bb5db8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osu.Server.Spectator/Database/DatabaseAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ await connection.ExecuteAsync(
"DELETE FROM multiplayer_playlist_items p"
+ " WHERE p.room_id = @RoomID"
+ " AND p.expired = 0"
+ " AND (SELECT COUNT(*) FROM multiplayer_score_links l WHERE l.playlist_item_id = p.id) = 0"
// condition below can be removed once scores are fully moved to multiplayer_score_links
+ " AND (SELECT COUNT(*) FROM multiplayer_scores s WHERE s.playlist_item_id = p.id) = 0",
new
{
Expand Down

0 comments on commit bb5db8a

Please sign in to comment.