Merge pull request #15739 from peppy/realm-migration-ordering

Fix realm applying migrations from one version too early
This commit is contained in:
Dan Balasescu 2021-11-22 23:52:50 +09:00 committed by GitHub
commit 7ce5cb6162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>();