diff --git a/Sources/SQLite/Core/Connection.swift b/Sources/SQLite/Core/Connection.swift index 043cfafc..72e8d857 100644 --- a/Sources/SQLite/Core/Connection.swift +++ b/Sources/SQLite/Core/Connection.swift @@ -159,9 +159,7 @@ public final class Connection { (try? scalar("PRAGMA user_version") as? Int64).map(Int32.init) } set { - if let userVersion = newValue { - _ = try? run("PRAGMA user_version = \(userVersion)") - } + _ = try? run("PRAGMA user_version = \(newValue ?? 0)") } }