mirror of https://github.com/ppy/osu
Add realm migration to update skin names
This commit is contained in:
parent
487378f732
commit
64ee210825
|
@ -69,8 +69,9 @@ public class RealmAccess : IDisposable
|
|||
/// 22 2022-07-31 Added ModPreset.
|
||||
/// 23 2022-08-01 Added LastLocalUpdate to BeatmapInfo.
|
||||
/// 24 2022-08-22 Added MaximumStatistics to ScoreInfo.
|
||||
/// 25 2022-09-18 Remove skins to add with new naming.
|
||||
/// </summary>
|
||||
private const int schema_version = 24;
|
||||
private const int schema_version = 25;
|
||||
|
||||
/// <summary>
|
||||
/// Lock object which is held during <see cref="BlockAllOperations"/> sections, blocking realm retrieval during blocking periods.
|
||||
|
@ -870,6 +871,11 @@ void convertOnlineIDs<T>() where T : RealmObject
|
|||
}
|
||||
|
||||
break;
|
||||
|
||||
case 25:
|
||||
// Remove the default skins so they can be added back by SkinManager with updated naming.
|
||||
migration.NewRealm.RemoveRange(migration.NewRealm.All<SkinInfo>().Where(s => s.Protected));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue