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:
parent
4e742959f2
commit
690b41b1e9
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user