mirror of
https://github.com/osukey/osukey.git
synced 2025-08-01 21:58:46 +09:00
Fix realm applying migrations from one version too early
This commit is contained in:
@ -153,13 +153,13 @@ namespace osu.Game.Database
|
||||
|
||||
private void onMigration(Migration migration, ulong lastSchemaVersion)
|
||||
{
|
||||
for (ulong i = lastSchemaVersion; i <= schema_version; i++)
|
||||
for (ulong i = lastSchemaVersion + 1; i <= schema_version; i++)
|
||||
applyMigrationsForVersion(migration, i);
|
||||
}
|
||||
|
||||
private void applyMigrationsForVersion(Migration migration, ulong version)
|
||||
private void applyMigrationsForVersion(Migration migration, ulong targetVersion)
|
||||
{
|
||||
switch (version)
|
||||
switch (targetVersion)
|
||||
{
|
||||
case 7:
|
||||
convertOnlineIDs<RealmBeatmap>();
|
||||
|
Reference in New Issue
Block a user