aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server
diff options
context:
space:
mode:
authorLampan-git <22211983+Lampan-git@users.noreply.github.com>2025-03-14 21:07:34 +0100
committerLampan-git <22211983+Lampan-git@users.noreply.github.com>2025-03-14 21:07:34 +0100
commitcf1f251f2a2115c84539f41603252a6733e02482 (patch)
treed05d9c04fdd12c1b818749efb74040d4788a19ce /Jellyfin.Server
parent7abb94d8a20072d451d6f58a0daa427efb5a93bf (diff)
Preserve null sortOrder during migration
Diffstat (limited to 'Jellyfin.Server')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
index 3289484f9..f826131fc 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
@@ -240,9 +240,7 @@ public class MigrateLibraryDb : IMigrationRoutine
{
}
- if (reader.TryGetInt32(4, out var sortOrder))
- {
- }
+ int? sortOrder = reader.IsDBNull(4) ? null : reader.GetInt32(4);
personCache.Items.Add(new PeopleBaseItemMap()
{