mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Ensure deletions are correct without relying on FK cascade rule
This commit is contained in:
parent
d4041d5d42
commit
0300f0d665
@ -19,5 +19,9 @@ namespace osu.Game.Database
|
||||
protected override IQueryable<T> AddIncludesForConsumption(IQueryable<T> query) =>
|
||||
base.AddIncludesForConsumption(query)
|
||||
.Include(s => s.Files).ThenInclude(f => f.FileInfo);
|
||||
|
||||
protected override IQueryable<T> AddIncludesForDeletion(IQueryable<T> query) =>
|
||||
base.AddIncludesForDeletion(query)
|
||||
.Include(s => s.Files); // don't include FileInfo. these are handled by the FileStore itself.
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user