Name the temporary database used by DatabaseMigrator.eraseDatabaseOnSchemaChange

This commit is contained in:
Gwendal Roué committed 2020-06-03 20:09:22 +02:00
1 parent a93f75a6fc
commit 800b9ffc3d
2 files changed
+1 -2

No files matched your search

+1
View File
@@ -140,6 +140,7 @@ public struct DatabaseMigrator {
// migrations would involve a lot of data).
var witnessConfiguration = writer.configuration
witnessConfiguration.targetQueue = nil // Avoid deadlocks
witnessConfiguration.label = "GRDB.DatabaseMigrator.temporary"
let witness = try DatabaseQueue(path: "", configuration: witnessConfiguration)
// Grab schema of migrated witness database
-2
View File
@@ -16,8 +16,6 @@
## Features
- [ ] Access the database label
- [ ] Label the Migrator witness dbQueue
- [ ] Subqueries: request.isEmpty / request.exists
- [ ] Subqueries: request.count
- [ ] Extract one row from a hasMany association (the one with the maximum date, the one with a flag set, etc.) https://stackoverflow.com/questions/43188771/sqlite-join-query-most-recent-posts-by-each-user (failed PR: https://github.com/groue/GRDB.swift/pull/767)