Add linking property on SkinFileInfo to allow EF to understand the link post-rename

This commit is contained in:
Dean Herbert
2021-11-30 15:17:16 +09:00
parent 1a06ea1966
commit 6bf9327228
2 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,7 @@ namespace osu.Game.Database
modelBuilder.Entity<EFSkinInfo>().HasIndex(b => b.Hash).IsUnique();
modelBuilder.Entity<EFSkinInfo>().HasIndex(b => b.DeletePending);
modelBuilder.Entity<EFSkinInfo>().HasMany(s => s.Files).WithOne(f => f.SkinInfo);
modelBuilder.Entity<DatabasedSetting>().HasIndex(b => new { b.RulesetID, b.Variant });