mirror of
https://github.com/ppy/osu
synced 2025-01-10 16:19:47 +00:00
Merge pull request #15739 from peppy/realm-migration-ordering
Fix realm applying migrations from one version too early
This commit is contained in:
commit
7ce5cb6162
@ -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