mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 23:52:54 +08:00
Merge pull request #405 from peppy/fix-db-deletion
Actually delete all related database entries, not just the set.
This commit is contained in:
commit
2e84188be7
@ -57,6 +57,18 @@ namespace osu.Game.Database
|
||||
try
|
||||
{
|
||||
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);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
Loading…
Reference in New Issue
Block a user