Remove complex migration

Only shooting gallery had a value put in the wrong column.  All others were either already correct or unimplemented.
This commit is contained in:
EmosewaMC
2023-04-17 15:19:13 -07:00
parent fcb088d263
commit 42870028e4
6 changed files with 11 additions and 35 deletions

View File

@@ -1 +0,0 @@
# This migration is a mock. See the real migration in MigrationRunner::MigrateLeaderboard.

View File

@@ -1,8 +1,10 @@
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
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;
UPDATE leaderboard SET streak = bestTime where game_id = 1864;