Compare migration identifier from OrderedDictionary key

This commit is contained in:
Markus Sintonen committed 2026-06-17 20:41:46 +03:00
1 parent 67530472a5
commit 7d489358e2
1 file changed
+2 -2
+2 -2
View File
@@ -581,9 +581,9 @@ public struct DatabaseMigrator: Sendable {
/// Returns unapplied migration executions
private func unappliedExecutions(upTo targetIdentifier: String, appliedIdentifiers: Set<String>) -> [Execution] {
var expectedMigrations: [Migration] = []
for (_, migration) in _migrations {
for (identifier, migration) in _migrations {
expectedMigrations.append(migration)
if migration.identifier == targetIdentifier {
if identifier == targetIdentifier {
break
}
}