aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/ModelConfiguration/ChapterConfiguration.cs
diff options
context:
space:
mode:
authorJPVenson <6794763+JPVenson@users.noreply.github.com>2024-10-09 11:22:52 +0000
committerJPVenson <6794763+JPVenson@users.noreply.github.com>2024-10-09 11:22:52 +0000
commitc2844bda3b7605257d7b2f8d146077cea6dd0b08 (patch)
tree75f31171179ea555c13bc47973e0289ee5685abd /Jellyfin.Server.Implementations/ModelConfiguration/ChapterConfiguration.cs
parent3dc402433870ba3dcd0f0c9f282ea96538e43c8b (diff)
Added EF BaseItem migration
Diffstat (limited to 'Jellyfin.Server.Implementations/ModelConfiguration/ChapterConfiguration.cs')
-rw-r--r--Jellyfin.Server.Implementations/ModelConfiguration/ChapterConfiguration.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/ModelConfiguration/ChapterConfiguration.cs b/Jellyfin.Server.Implementations/ModelConfiguration/ChapterConfiguration.cs
index 464fbfb01..5a84f7750 100644
--- a/Jellyfin.Server.Implementations/ModelConfiguration/ChapterConfiguration.cs
+++ b/Jellyfin.Server.Implementations/ModelConfiguration/ChapterConfiguration.cs
@@ -13,7 +13,7 @@ public class ChapterConfiguration : IEntityTypeConfiguration<Chapter>
/// <inheritdoc/>
public void Configure(EntityTypeBuilder<Chapter> builder)
{
- builder.HasNoKey();
- builder.HasIndex(e => new { e.ItemId, e.ChapterIndex });
+ builder.HasKey(e => new { e.ItemId, e.ChapterIndex });
+ builder.HasOne(e => e.Item);
}
}