Explorar el Código

Preserve null sortOrder during migration

Lampan-git hace 3 meses
padre
commit
cf1f251f2a
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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()
             {