From cb74cb802cdf1cddab1b08eb7ead96b4cab5d2ea Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 16 Aug 2007 04:28:07 +0000 Subject: [PATCH] Move scrapers updating out of transaction to shrink it further, since we're still getting "database disk image is malformed" errors --- chrome/content/zotero/xpcom/schema.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index d5fb0a555..5861cb2a4 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -118,7 +118,6 @@ Zotero.Schema = new function(){ var up1 = _migrateUserDataSchema(dbVersion); var up2 = _updateSchema('system'); - var up3 = _updateSchema('scrapers'); Zotero.DB.commitTransaction(); } @@ -128,6 +127,14 @@ Zotero.Schema = new function(){ throw(e); } + try { + var up3 = _updateSchema('scrapers'); + } + catch (e) { + Zotero.debug(e, 1); + throw(e); + } + // Workaround for upgrade error in step 35 if (_fulltextItemWordsCache) { Zotero.DB.beginTransaction();