mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-04 09:44:10 +00:00
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:
@@ -1 +0,0 @@
|
||||
# This migration is a mock. See the real migration in MigrationRunner::MigrateLeaderboard.
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user