From bfac1763724e0d1f79df4f98037d1282837490b4 Mon Sep 17 00:00:00 2001 From: Kiel Gillard Date: Tue, 5 Nov 2019 10:03:29 +1100 Subject: [PATCH] Modifies SyncDatabase to synchronously create tables so clients can reliably use an instance immediately after initialisation. --- Frameworks/SyncDatabase/SyncDatabase.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/SyncDatabase/SyncDatabase.swift b/Frameworks/SyncDatabase/SyncDatabase.swift index cdef8b40f..2269afe7b 100644 --- a/Frameworks/SyncDatabase/SyncDatabase.swift +++ b/Frameworks/SyncDatabase/SyncDatabase.swift @@ -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() }