mirror of
https://github.com/ppy/osu
synced 2025-02-04 04:11:54 +00:00
Use a single EF context to avoid scores getting cascade deleted along the way
This commit is contained in:
parent
7baada2fa6
commit
6b0bf38c93
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user