sql: Add NULL support to database wrappers

This commit is contained in:
Tau
2020-03-22 22:38:54 +00:00
committed by Matt Bilker
parent bc5f26d768
commit 01198d546a
20 changed files with 109 additions and 95 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ export default async function checkdb(db: DataSource): Promise<void> {
const row = await db.transaction(txn => txn.fetchRow(stmt));
if (row !== undefined) {
maybe = parseInt(row.schemaver);
maybe = parseInt(row.schemaver!);
}
} catch (e) {
return db.transaction(initdb);