mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Cascade delete metadata when beatmaps are deleted
This commit is contained in:
parent
34aa1bf21d
commit
e12025dd48
@ -121,6 +121,8 @@ namespace osu.Game.Database
|
||||
foreach (var score in beatmap.Scores)
|
||||
realm.Remove(score);
|
||||
|
||||
realm.Remove(beatmap.Metadata);
|
||||
|
||||
realm.Remove(beatmap);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user