mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +00:00
Compare migration identifier from OrderedDictionary key
This commit is contained in:
1 parent
67530472a5
commit
7d489358e2
1 file changed
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user