diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index 18f4dc71fd..240e7cbb50 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -857,8 +857,14 @@ Zotero.DBConnection.prototype.info = Zotero.Promise.coroutine(function* () { }); +Zotero.DBConnection.prototype.quickCheck = async function () { + var ok = await this.valueQueryAsync("PRAGMA quick_check(1)"); + return ok == 'ok'; +}; + + Zotero.DBConnection.prototype.integrityCheck = Zotero.Promise.coroutine(function* () { - var ok = yield this.valueQueryAsync("PRAGMA integrity_check"); + var ok = yield this.valueQueryAsync("PRAGMA integrity_check(1)"); return ok == 'ok'; });