mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 12:27:26 +08:00
Merge pull request #30379 from peppy/dont-delete-scores
Don't delete scores when deleting beatmaps
This commit is contained in:
commit
1bdae2af41
@ -376,10 +376,6 @@ namespace osu.Game.Database
|
||||
{
|
||||
foreach (var beatmap in beatmapSet.Beatmaps)
|
||||
{
|
||||
// Cascade delete related scores, else they will have a null beatmap against the model's spec.
|
||||
foreach (var score in beatmap.Scores)
|
||||
realm.Remove(score);
|
||||
|
||||
realm.Remove(beatmap.Metadata);
|
||||
realm.Remove(beatmap);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user