mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Don't bother with removing from EF as the file is going to be deleted anyway
This commit is contained in:
parent
3b0977903b
commit
519f7e6ad2
@ -148,8 +148,6 @@ namespace osu.Game.Database
|
||||
}
|
||||
|
||||
Logger.Log($"Successfully migrated {count} beatmaps to realm", LoggingTarget.Database);
|
||||
ef.Context.RemoveRange(existingBeatmapSets);
|
||||
// Intentionally don't clean up the files, so they don't get purged by EF.
|
||||
}
|
||||
}
|
||||
|
||||
@ -253,8 +251,6 @@ namespace osu.Game.Database
|
||||
}
|
||||
|
||||
Logger.Log($"Successfully migrated {count} scores to realm", LoggingTarget.Database);
|
||||
db.Context.RemoveRange(existingScores);
|
||||
// Intentionally don't clean up the files, so they don't get purged by EF.
|
||||
}
|
||||
}
|
||||
|
||||
@ -313,9 +309,6 @@ namespace osu.Game.Database
|
||||
}
|
||||
}
|
||||
|
||||
db.Context.RemoveRange(existingSkins);
|
||||
// Intentionally don't clean up the files, so they don't get purged by EF.
|
||||
|
||||
transaction.Commit();
|
||||
}
|
||||
}
|
||||
@ -372,8 +365,6 @@ namespace osu.Game.Database
|
||||
}
|
||||
}
|
||||
|
||||
db.Context.RemoveRange(existingSettings);
|
||||
|
||||
transaction.Commit();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user