diff options
| author | JPVenson <6794763+JPVenson@users.noreply.github.com> | 2024-10-09 11:22:52 +0000 |
|---|---|---|
| committer | JPVenson <6794763+JPVenson@users.noreply.github.com> | 2024-10-09 11:22:52 +0000 |
| commit | c2844bda3b7605257d7b2f8d146077cea6dd0b08 (patch) | |
| tree | 75f31171179ea555c13bc47973e0289ee5685abd /Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs | |
| parent | 3dc402433870ba3dcd0f0c9f282ea96538e43c8b (diff) | |
Added EF BaseItem migration
Diffstat (limited to 'Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs b/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs index a7de6ec32..c39854f5a 100644 --- a/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs +++ b/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs @@ -13,8 +13,7 @@ public class ItemValuesConfiguration : IEntityTypeConfiguration<ItemValue> /// <inheritdoc/> public void Configure(EntityTypeBuilder<ItemValue> builder) { - builder.HasNoKey(); + builder.HasKey(e => new { e.ItemId, e.Type, e.Value }); builder.HasIndex(e => new { e.ItemId, e.Type, e.CleanValue }); - builder.HasIndex(e => new { e.ItemId, e.Type, e.Value }); } } |
