Преглед на файлове

Preserve null sortOrder during migration

Lampan-git преди 3 месеца
родител
ревизия
cf1f251f2a
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs

+ 1 - 3
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()
             {