mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:43:21 +08:00
Fix join rows not being deleted when a beatmap is cleaned up
This commit is contained in:
parent
4e742959f2
commit
690b41b1e9
@ -107,6 +107,9 @@ namespace osu.Game.Beatmaps
|
||||
}
|
||||
|
||||
if (b.Metadata != null) Connection.Delete(b.Metadata);
|
||||
|
||||
// many-to-many join table entries are not automatically tidied.
|
||||
Connection.Table<BeatmapSetFileInfo>().Delete(f => f.BeatmapSetInfoID == b.ID);
|
||||
Connection.Delete(b);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
Loading…
Reference in New Issue
Block a user