Update 9_Update_Leaderboard_Storage.sql

This commit is contained in:
David Markowitz 2024-03-29 17:24:59 -07:00
parent 150031861d
commit f0a72873f2

View File

@ -11,7 +11,7 @@ ALTER TABLE leaderboard CHANGE time secondaryScore FLOAT NOT NULL DEFAULT 0 AFTE
/* A bit messy, but better than going through a bunch of code fixes all to be run once. */ /* A bit messy, but better than going through a bunch of code fixes all to be run once. */
UPDATE leaderboard SET UPDATE leaderboard SET
primaryScore = secondaryScore, primaryScore = secondaryScore,
secondaryScore = 0 WHERE game_id IN (1, 44, 46, 47, 48, 49, 53, 103, 104, 108, 1901); secondaryScore = 0 WHERE game_id IN (1, 44, 46, 47, 48, 49, 53, 103, 104, 108, 1901) AND secondaryScore > 0;
/* Do this last so we dont update entry times erroneously */ /* Do this last so we dont update entry times erroneously */
ALTER TABLE leaderboard ALTER TABLE leaderboard