Merge pull request #16226 from dfederm/fix/16134-migration-unique-constraint

Deduplicate provider IDs during MigrateLibraryDb migration
This commit is contained in:
Bond-009
2026-02-14 11:46:43 +01:00
committed by GitHub

View File

@@ -1163,7 +1163,9 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine
Item = null!,
ProviderId = e[0],
ProviderValue = string.Join('|', e.Skip(1))
}).ToArray();
})
.DistinctBy(e => e.ProviderId)
.ToArray();
}
if (reader.TryGetString(index++, out var imageInfos))