diff options
| author | JPVenson <github@jpb.email> | 2024-11-13 14:25:26 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2024-11-13 14:25:26 +0000 |
| commit | 7b81a39ee17cd6e5b68f63fad132b29e516fceb1 (patch) | |
| tree | 36b44e4bff4e8436e88fcf6c03173beb215ba752 /Jellyfin.Server.Implementations/ModelConfiguration | |
| parent | fcb1dfc010b67be4e0262e87d641b74a72351489 (diff) | |
Fix Deduplication and Save of Items
Diffstat (limited to 'Jellyfin.Server.Implementations/ModelConfiguration')
| -rw-r--r-- | Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs b/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs index 7dfa2032e..abeeb09c9 100644 --- a/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs +++ b/Jellyfin.Server.Implementations/ModelConfiguration/ItemValuesConfiguration.cs @@ -14,6 +14,6 @@ public class ItemValuesConfiguration : IEntityTypeConfiguration<ItemValue> public void Configure(EntityTypeBuilder<ItemValue> builder) { builder.HasKey(e => e.ItemValueId); - builder.HasIndex(e => new { e.Type, e.CleanValue }); + builder.HasIndex(e => new { e.Type, e.CleanValue }).IsUnique(); } } |
