Use a single EF context to avoid scores getting cascade deleted along the way

This commit is contained in:
Dean Herbert 2022-01-18 20:47:53 +09:00
parent 7baada2fa6
commit 6b0bf38c93

View File

@ -34,16 +34,12 @@ namespace osu.Game.Database
public void Run()
{
using (var ef = efContextFactory.GetForWrite())
{
migrateSettings(ef);
using (var ef = efContextFactory.GetForWrite())
migrateSkins(ef);
using (var ef = efContextFactory.GetForWrite())
migrateBeatmaps(ef);
using (var ef = efContextFactory.GetForWrite())
migrateScores(ef);
}
// Delete the database permanently.
// Will cause future startups to not attempt migration.