mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
Modifies SyncDatabase to synchronously create tables so clients can reliably use an instance immediately after initialisation.
This commit is contained in:
parent
219e5751a1
commit
bfac176372
@ -18,7 +18,7 @@ public final class SyncDatabase {
|
||||
let queue = RSDatabaseQueue(filepath: databaseFilePath, excludeFromBackup: false)
|
||||
self.syncStatusTable = SyncStatusTable(queue: queue)
|
||||
|
||||
queue.createTables(usingStatements: SyncDatabase.tableCreationStatements)
|
||||
queue.createTables(usingStatementsSync: SyncDatabase.tableCreationStatements)
|
||||
queue.vacuumIfNeeded()
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user