Preserve null sortOrder during migration

This commit is contained in:
Lampan-git 2025-03-14 21:07:34 +01:00
parent 7abb94d8a2
commit cf1f251f2a

View File

@ -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()
{