Fix possible "syncDeleteLog not empty and no timestamp in Zotero.Sync.delete()" error after upgrading
This commit is contained in:
parent
ebf6447351
commit
ad965b1675
2 changed files with 7 additions and 1 deletions
|
@ -2368,6 +2368,12 @@ Zotero.Schema = new function(){
|
|||
if (i==57) {
|
||||
Zotero.DB.query("UPDATE itemAttachments SET linkMode=0, mimeType=NULL WHERE linkMode IS NULL AND mimeType=0");
|
||||
}
|
||||
|
||||
if (i==58) {
|
||||
if (!Zotero.DB.valueQuery("SELECT COUNT(*) FROM version WHERE schema='syncdeletelog'") && Zotero.DB.valueQuery("SELECT COUNT(*) FROM syncDeleteLog")) {
|
||||
Zotero.DB.query("INSERT INTO version VALUES ('syncdeletelog', CURRENT_TIMESTAMP)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_updateDBVersion('userdata', toVersion);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- 57
|
||||
-- 58
|
||||
|
||||
-- This file creates tables containing user-specific data for new users --
|
||||
-- any changes made here must be mirrored in transition steps in schema.js::_migrateSchema()
|
||||
|
|
Loading…
Add table
Reference in a new issue