2023-04-17 22:19:13 +00:00
|
|
|
ALTER TABLE leaderboard
|
2023-05-30 11:11:37 +00:00
|
|
|
ADD COLUMN hitPercentage INT NOT NULL DEFAULT 0,
|
2023-04-17 22:19:13 +00:00
|
|
|
ADD COLUMN streak INT NOT NULL DEFAULT 0,
|
2023-05-30 11:11:37 +00:00
|
|
|
ADD COLUMN bestLapTime INT NOT NULL DEFAULT 0,
|
2023-04-17 22:19:13 +00:00
|
|
|
ADD COLUMN numWins INT NOT NULL DEFAULT 0,
|
2023-05-30 11:11:37 +00:00
|
|
|
ADD COLUMN timesPlayed INT NOT NULL DEFAULT 1,
|
|
|
|
MODIFY time INT NOT NULL DEFAULT 0;
|
2023-04-17 08:16:23 +00:00
|
|
|
|
2023-05-30 11:11:37 +00:00
|
|
|
ALTER TABLE leaderboard CHANGE time bestTime INT;
|
2023-05-08 10:55:10 +00:00
|
|
|
ALTER TABLE leaderboard CHANGE last_played last_played TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP();
|
2023-04-17 22:19:13 +00:00
|
|
|
|
|
|
|
UPDATE leaderboard SET streak = bestTime where game_id = 1864;
|