mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-04 09:44:10 +00:00
Further work on leaderboards
- Modularize tests - Add migrations - Fix switch case so it actually breaks - Add in missing writes - Beginning work on custom migration to move the leaderboard to the final state
This commit is contained in:
1
migrations/dlu/10_Update_Leaderboard_Columns.sql
Normal file
1
migrations/dlu/10_Update_Leaderboard_Columns.sql
Normal file
@@ -0,0 +1 @@
|
||||
# This migration is a mock. See the real migration in MigrationRunner::MigrateLeaderboard.
|
8
migrations/dlu/9_Update_Leaderboard_Storage.sql
Normal file
8
migrations/dlu/9_Update_Leaderboard_Storage.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
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,
|
||||
MODIFY time FLOAT NOT NULL DEFAULT 0;
|
||||
|
||||
ALTER TABLE leaderboard CHANGE time bestTime float;
|
Reference in New Issue
Block a user