mirror of https://github.com/ppy/osu
4278a320e4
The reason this was happening was an unfortunate oversight in the migration logic. The code that was attempting to parse the skin settings as `int` was firing regardless of whether a skin migration from EF to realm had already occurred. If it had occurred, the skin setting would contain a GUID rather than an integer, and therefore fail to parse, and therefore implicitly fallback to a EF skin ID of 0 which would be the default skin. Fix by not running the setting migrating logic at all when there are no EF skins to migrate. |
||
---|---|---|
.. | ||
ArchiveModelManager.cs | ||
BeatmapLookupCache.cs | ||
DatabaseBackedStore.cs | ||
DatabaseContextFactory.cs | ||
DatabaseWriteUsage.cs | ||
EFToRealmMigrator.cs | ||
EntityFrameworkLive.cs | ||
EntityFrameworkLiveExtensions.cs | ||
ICanAcceptFiles.cs | ||
IDatabaseContextFactory.cs | ||
IHasFiles.cs | ||
IHasGuidPrimaryKey.cs | ||
IHasNamedFiles.cs | ||
IHasOnlineID.cs | ||
IHasPrimaryKey.cs | ||
IHasRealmFiles.cs | ||
ILive.cs | ||
IModelDownloader.cs | ||
IModelFileManager.cs | ||
IModelImporter.cs | ||
IModelManager.cs | ||
INamedFile.cs | ||
INamedFileInfo.cs | ||
INamedFileUsage.cs | ||
IPostImports.cs | ||
IPostNotifications.cs | ||
IRealmFactory.cs | ||
ISoftDelete.cs | ||
ImportProgressNotification.cs | ||
ImportTask.cs | ||
LegacyBeatmapExporter.cs | ||
LegacyBeatmapImporter.cs | ||
LegacyExporter.cs | ||
LegacyImportManager.cs | ||
LegacyModelImporter.cs | ||
LegacyScoreExporter.cs | ||
LegacyScoreImporter.cs | ||
LegacySkinExporter.cs | ||
LegacySkinImporter.cs | ||
MemoryCachingComponent.cs | ||
ModelDownloader.cs | ||
MutableDatabaseBackedStore.cs | ||
MutableDatabaseBackedStoreWithFileIncludes.cs | ||
OsuDbContext.cs | ||
RealmContextFactory.cs | ||
RealmExtensions.cs | ||
RealmLive.cs | ||
RealmObjectExtensions.cs | ||
UserLookupCache.cs |