diff options
| author | Lampan-git <22211983+Lampan-git@users.noreply.github.com> | 2025-03-14 21:07:34 +0100 |
|---|---|---|
| committer | Lampan-git <22211983+Lampan-git@users.noreply.github.com> | 2025-03-14 21:07:34 +0100 |
| commit | cf1f251f2a2115c84539f41603252a6733e02482 (patch) | |
| tree | d05d9c04fdd12c1b818749efb74040d4788a19ce | |
| parent | 7abb94d8a20072d451d6f58a0daa427efb5a93bf (diff) | |
Preserve null sortOrder during migration
| -rw-r--r-- | Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs | 4 |
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() { |
