mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Fix realm applying migrations from one version too early
This commit is contained in:
parent
1020fb7323
commit
361cb78880
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user