diff options
| author | JPVenson <github@jpb.email> | 2024-10-09 23:19:24 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2024-10-09 23:19:24 +0000 |
| commit | 2955f2f56275fca01cd3f586b3475dcdfbea78ed (patch) | |
| tree | c9202c3ad903e704058c9d9b745ef90d1c150ca9 /Jellyfin.Server.Implementations/ModelConfiguration/AncestorIdConfiguration.cs | |
| parent | eb601e944cd392a8007b540ab5627977a37368c6 (diff) | |
Fixed AncestorIds and applied review comments
Diffstat (limited to 'Jellyfin.Server.Implementations/ModelConfiguration/AncestorIdConfiguration.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/ModelConfiguration/AncestorIdConfiguration.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Jellyfin.Server.Implementations/ModelConfiguration/AncestorIdConfiguration.cs b/Jellyfin.Server.Implementations/ModelConfiguration/AncestorIdConfiguration.cs index b7fe909dd..0e90b8d82 100644 --- a/Jellyfin.Server.Implementations/ModelConfiguration/AncestorIdConfiguration.cs +++ b/Jellyfin.Server.Implementations/ModelConfiguration/AncestorIdConfiguration.cs @@ -13,8 +13,7 @@ public class AncestorIdConfiguration : IEntityTypeConfiguration<AncestorId> /// <inheritdoc/> public void Configure(EntityTypeBuilder<AncestorId> builder) { - builder.HasKey(e => new { e.ItemId, e.Id }); - builder.HasIndex(e => e.Id); - builder.HasIndex(e => new { e.ItemId, e.AncestorIdText }); + builder.HasKey(e => new { e.ItemId, e.ParentItemId }); + builder.HasIndex(e => e.ParentItemId); } } |
