osu/osu.Game/Database
Bartłomiej Dach 4278a320e4
Fix skin setting resetting every launch
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.
2021-12-06 20:12:02 +01:00
..
ArchiveModelManager.cs Remove the ability to specify a filename in ReplaceFile 2021-11-29 18:11:51 +09:00
BeatmapLookupCache.cs Add early abort to avoid sending empty lookup requests 2021-12-01 17:47:16 +09:00
DatabaseBackedStore.cs Remove unnecessary virtual specification on Refresh 2021-11-25 14:06:12 +09:00
DatabaseContextFactory.cs Move database connection string operations local 2021-09-27 17:32:41 +09:00
DatabaseWriteUsage.cs
EFToRealmMigrator.cs Fix skin setting resetting every launch 2021-12-06 20:12:02 +01:00
EntityFrameworkLive.cs Merge pull request #15812 from peppy/realm-live-unmanaged-fetch-fix 2021-11-26 15:37:58 +09:00
EntityFrameworkLiveExtensions.cs Initial push to use ILive in import process 2021-09-30 22:55:25 +09:00
ICanAcceptFiles.cs
IDatabaseContextFactory.cs
IHasFiles.cs Initialise all file lists at construction time (and remove setter) 2021-11-24 13:56:21 +09:00
IHasGuidPrimaryKey.cs Remove setter from IHasGuidPrimaryKey interface 2021-10-04 16:26:28 +09:00
IHasNamedFiles.cs Update all models to implement IHasNamedFiles 2021-11-25 16:41:12 +09:00
IHasOnlineID.cs Use extension method to compare online IDs 2021-11-15 14:34:50 +09:00
IHasPrimaryKey.cs
IHasRealmFiles.cs Add a few nullabilities and DCC excludes 2021-10-13 12:51:46 +09:00
ILive.cs Update missed xmldoc/comments 2021-11-30 11:56:53 +09:00
IModelDownloader.cs Fix incorrectly specified events 2021-11-06 22:31:49 +09:00
IModelFileManager.cs Overwrite existing files if AddFile is called with an existing filename 2021-12-02 17:18:06 +09:00
IModelImporter.cs Fix failed imports being incorrectly considered as successfully importing for notification purposes 2021-11-12 16:10:46 +09:00
IModelManager.cs Split out legacy model export logic into LegacyModelExporter classes 2021-11-25 16:41:12 +09:00
ImportProgressNotification.cs Add test coverage of startup import sequence 2021-10-13 12:19:10 +09:00
ImportTask.cs Add pathway to correctly handle stream-based imports which are not zip archives 2021-11-12 16:42:07 +09:00
INamedFile.cs Add a few nullabilities and DCC excludes 2021-10-13 12:51:46 +09:00
INamedFileInfo.cs
INamedFileUsage.cs Update all EF based models to implement new read only interfaces 2021-10-01 16:55:50 +09:00
IPostImports.cs Add equality support to ILive types 2021-11-26 14:56:16 +09:00
IPostNotifications.cs Split out IPostNotifications into an interface 2021-09-30 18:21:34 +09:00
IRealmFactory.cs Improve clarity of xmldoc 2021-10-01 22:23:51 +09:00
ISoftDelete.cs
LegacyBeatmapExporter.cs Remove unnecessary manager parameter 2021-11-25 18:36:03 +09:00
LegacyBeatmapImporter.cs Add missing licence headers 2021-11-25 16:56:19 +09:00
LegacyExporter.cs Remove unnecessary manager parameter 2021-11-25 18:36:03 +09:00
LegacyImportManager.cs Fix typo in class and variable names 2021-11-25 17:12:15 +09:00
LegacyModelImporter.cs Rename base class to LegacyModelImporter 2021-11-25 16:33:04 +09:00
LegacyScoreExporter.cs Remove unnecessary manager parameter 2021-11-25 18:36:03 +09:00
LegacyScoreImporter.cs Add missing licence headers 2021-11-25 16:56:19 +09:00
LegacySkinExporter.cs Remove unnecessary manager parameter 2021-11-25 18:36:03 +09:00
LegacySkinImporter.cs Add missing licence headers 2021-11-25 16:56:19 +09:00
MemoryCachingComponent.cs
ModelDownloader.cs Remove unnecessary GameHost parameter 2021-11-25 17:42:41 +09:00
MutableDatabaseBackedStore.cs Attempt to reduce skin lookup overhead where file access is not required 2021-08-17 00:23:30 +09:00
MutableDatabaseBackedStoreWithFileIncludes.cs
OsuDbContext.cs Add linking property on SkinFileInfo to allow EF to understand the link post-rename 2021-11-30 15:17:16 +09:00
RealmContextFactory.cs Merge branch 'realm-nested-context-creation-deadlock-fix' into realm-integration/skins-rebase 2021-11-30 15:56:34 +09:00
RealmExtensions.cs Refine RealmContext implementation API 2021-09-30 23:56:38 +09:00
RealmLive.cs Merge branch 'master' into realm-integration/skins-rebase 2021-11-30 19:59:59 +09:00
RealmObjectExtensions.cs Replace 'skin' in comments with 'instance' 2021-12-01 20:17:38 +09:00
UserLookupCache.cs Add early abort to avoid sending empty lookup requests 2021-12-01 17:47:16 +09:00