aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-10-10 14:32:49 +0000
committerJPVenson <github@jpb.email>2024-10-10 14:32:49 +0000
commitee0dad6f432e5bfdda074e3f006f4c4d3c418d08 (patch)
tree34bbc0ea11007d9e7cd84f738d7b69cf88073259 /Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs
parent3e7ce5e1df9c6820a6dfd4c23aea29eed83b43ba (diff)
Refactored ItemValue structure
Diffstat (limited to 'Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs')
-rw-r--r--Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs b/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs
index c39854f5a..7dfa2032e 100644
--- a/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs
+++ b/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs
@@ -13,7 +13,7 @@ public class ItemValuesConfiguration : IEntityTypeConfiguration<ItemValue>
/// <inheritdoc/>
public void Configure(EntityTypeBuilder<ItemValue> builder)
{
- builder.HasKey(e => new { e.ItemId, e.Type, e.Value });
- builder.HasIndex(e => new { e.ItemId, e.Type, e.CleanValue });
+ builder.HasKey(e => e.ItemValueId);
+ builder.HasIndex(e => new { e.Type, e.CleanValue });
}
}