Move scrapers updating out of transaction to shrink it further, since we're still getting "database disk image is malformed" errors
This commit is contained in:
parent
96890b8e95
commit
cb74cb802c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user