Modifies SyncDatabase to synchronously create tables so clients can reliably use an instance immediately after initialisation.

This commit is contained in:
Kiel Gillard 2019-11-05 10:03:29 +11:00
parent 219e5751a1
commit bfac176372

View File

@ -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()
}