mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 04:08:20 +00:00
bc518be654
Fix co-pilot induced column bugs Fix insert/update statements Added saving functionality Added update clause for column
13 lines
557 B
SQL
13 lines
557 B
SQL
ALTER TABLE leaderboard
|
|
ADD COLUMN hitPercentage FLOAT NOT NULL DEFAULT 0,
|
|
ADD COLUMN streak INT NOT NULL DEFAULT 0,
|
|
ADD COLUMN bestLapTime FLOAT NOT NULL DEFAULT 0,
|
|
ADD COLUMN numWins INT NOT NULL DEFAULT 0,
|
|
ADD COLUMN timesPlayed INT NOT NULL DEFAULT 0,
|
|
MODIFY time FLOAT NOT NULL DEFAULT 0;
|
|
|
|
ALTER TABLE leaderboard CHANGE time bestTime float;
|
|
ALTER TABLE leaderboard CHANGE last_played TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP();
|
|
|
|
UPDATE leaderboard SET streak = bestTime where game_id = 1864;
|