aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/ModelConfiguration/PeopleConfiguration.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/PeopleConfiguration.cs
parent3dc402433870ba3dcd0f0c9f282ea96538e43c8b (diff)
Added EF BaseItem migration
Diffstat (limited to 'Jellyfin.Server.Implementations/ModelConfiguration/PeopleConfiguration.cs')
-rw-r--r--Jellyfin.Server.Implementations/ModelConfiguration/PeopleConfiguration.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/ModelConfiguration/PeopleConfiguration.cs b/Jellyfin.Server.Implementations/ModelConfiguration/PeopleConfiguration.cs
index f6cd39c24..5f5b4dfc7 100644
--- a/Jellyfin.Server.Implementations/ModelConfiguration/PeopleConfiguration.cs
+++ b/Jellyfin.Server.Implementations/ModelConfiguration/PeopleConfiguration.cs
@@ -13,7 +13,7 @@ public class PeopleConfiguration : IEntityTypeConfiguration<People>
/// <inheritdoc/>
public void Configure(EntityTypeBuilder<People> builder)
{
- builder.HasNoKey();
+ builder.HasKey(e => new { e.ItemId, e.Role, e.ListOrder });
builder.HasIndex(e => new { e.ItemId, e.ListOrder });
builder.HasIndex(e => e.Name);
}