mirror of
https://github.com/ppy/osu
synced 2025-02-21 13:07:18 +00: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)
|
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);
|
applyMigrationsForVersion(migration, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void applyMigrationsForVersion(Migration migration, ulong version)
|
private void applyMigrationsForVersion(Migration migration, ulong targetVersion)
|
||||||
{
|
{
|
||||||
switch (version)
|
switch (targetVersion)
|
||||||
{
|
{
|
||||||
case 7:
|
case 7:
|
||||||
convertOnlineIDs<RealmBeatmap>();
|
convertOnlineIDs<RealmBeatmap>();
|
||||||
|
Loading…
Reference in New Issue
Block a user