mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +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)
|
let queue = RSDatabaseQueue(filepath: databaseFilePath, excludeFromBackup: false)
|
||||||
self.syncStatusTable = SyncStatusTable(queue: queue)
|
self.syncStatusTable = SyncStatusTable(queue: queue)
|
||||||
|
|
||||||
queue.createTables(usingStatements: SyncDatabase.tableCreationStatements)
|
queue.createTables(usingStatementsSync: SyncDatabase.tableCreationStatements)
|
||||||
queue.vacuumIfNeeded()
|
queue.vacuumIfNeeded()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user