mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Cleanup
This commit is contained in:
1 parent
e8802fb010
commit
52bc7eb7c6
1 file changed
+2
-3
@@ -92,10 +92,9 @@ extension Database {
|
||||
}
|
||||
}
|
||||
|
||||
// Temp schema shadows main and attached databases
|
||||
// Temp schema shadows other schema: put it first
|
||||
if let tempIdx = schemaIdentifiers.firstIndex(of: .temp) {
|
||||
schemaIdentifiers.remove(at: tempIdx)
|
||||
schemaIdentifiers.insert(.temp, at: 0)
|
||||
schemaIdentifiers.swapAt(tempIdx, 0)
|
||||
}
|
||||
|
||||
schemaCache.schemaIdentifiers = schemaIdentifiers
|
||||
|
||||
Reference in new issue
Block a user