mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Avoid closing initial context after migrations (unnecessary)
This commit is contained in:
@ -38,11 +38,9 @@ namespace osu.Game.Database
|
||||
|
||||
threadContexts = new ThreadLocal<Realm>(createContext, true);
|
||||
|
||||
using (var realm = Get())
|
||||
{
|
||||
Logger.Log($"Opened realm {database_name} at version {realm.Config.SchemaVersion}");
|
||||
// creating a context will ensure our schema is up-to-date and migrated.
|
||||
}
|
||||
// creating a context will ensure our schema is up-to-date and migrated.
|
||||
var realm = Get();
|
||||
Logger.Log($"Opened realm \"{realm.Config.DatabasePath}\" at version {realm.Config.SchemaVersion}");
|
||||
}
|
||||
|
||||
private void onMigration(Migration migration, ulong lastSchemaVersion)
|
||||
|
Reference in New Issue
Block a user