mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 11:43:01 +08:00
Replace missed hardcoded int with enum reference
This commit is contained in:
parent
5a99651561
commit
2865dd3a10
@ -18,7 +18,7 @@ namespace osu.Game.Migrations
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("DELETE FROM KeyBinding WHERE RulesetID IS NULL AND Variant IS NULL AND Action = 8");
|
||||
migrationBuilder.Sql($"DELETE FROM KeyBinding WHERE RulesetID IS NULL AND Variant IS NULL AND Action = {(int)GlobalAction.ToggleMute}");
|
||||
migrationBuilder.Sql($"UPDATE KeyBinding SET Action = Action - 1 WHERE RulesetID IS NULL AND Variant IS NULL AND Action > {(int)GlobalAction.ToggleMute}");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user