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/Migrations/JellyfinDbModelSnapshot.cs | |
| parent | fcb1dfc010b67be4e0262e87d641b74a72351489 (diff) | |
Fix Deduplication and Save of Items
Diffstat (limited to 'Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs b/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs index b2f90a983..e75760d80 100644 --- a/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs +++ b/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs @@ -690,7 +690,8 @@ namespace Jellyfin.Server.Implementations.Migrations b.HasKey("ItemValueId"); - b.HasIndex("Type", "CleanValue"); + b.HasIndex("Type", "CleanValue") + .IsUnique(); b.ToTable("ItemValues"); }); |
