mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Call vacuumIfNeeded.
This commit is contained in:
1 parent
ceb9518777
commit
5763e30110
3 files changed
+9
-9
No files matched your search
@@ -7,7 +7,6 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import RSCore
|
||||
import RSDatabase
|
||||
import RSDatabaseObjC
|
||||
|
||||
@@ -18,9 +17,7 @@ public actor SyncDatabase {
|
||||
public init(databasePath: String) {
|
||||
let database = FMDatabase.openAndSetUpDatabase(path: databasePath)
|
||||
database.runCreateStatements(Self.tableCreationStatements)
|
||||
if !Platform.isRunningUnitTests {
|
||||
database.vacuum()
|
||||
}
|
||||
database.vacuumIfNeeded()
|
||||
|
||||
self.database = database
|
||||
self.databasePath = databasePath
|
||||
|
||||
Reference in new issue
Block a user