mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08:00
Actually delete all related database entries, not just the set.
This commit is contained in:
parent
0c2089ddd7
commit
4a4f1f4d82
@ -57,6 +57,18 @@ namespace osu.Game.Database
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
storage.Delete(b.Path);
|
storage.Delete(b.Path);
|
||||||
|
|
||||||
|
GetChildren(b, true);
|
||||||
|
|
||||||
|
foreach (var i in b.Beatmaps)
|
||||||
|
{
|
||||||
|
if (i.Metadata != null) connection.Delete(i.Metadata);
|
||||||
|
if (i.BaseDifficulty != null) connection.Delete(i.BaseDifficulty);
|
||||||
|
|
||||||
|
connection.Delete(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (b.Metadata != null) connection.Delete(b.Metadata);
|
||||||
connection.Delete(b);
|
connection.Delete(b);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
Loading…
Reference in New Issue
Block a user