1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 00:02:54 +08:00

Fix join rows not being deleted when a beatmap is cleaned up

This commit is contained in:
Dean Herbert 2017-07-27 12:37:37 +09:00
parent 4e742959f2
commit 690b41b1e9

View File

@ -107,6 +107,9 @@ namespace osu.Game.Beatmaps
} }
if (b.Metadata != null) Connection.Delete(b.Metadata); 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); Connection.Delete(b);
} }
catch (Exception e) catch (Exception e)