diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 860274ce9b..511f912c66 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -2441,6 +2441,16 @@ Zotero.Schema = new function(){ } } + else if (i == 102) { + let userID = yield Zotero.DB.valueQueryAsync("SELECT value FROM settings WHERE setting='account' AND key='userID'"); + if (userID && typeof userID == 'string') { + userID = userID.trim(); + if (userID) { + yield Zotero.DB.queryAsync("UPDATE settings SET value=? WHERE setting='account' AND key='userID'", parseInt(userID)); + } + } + } + // If breaking compatibility or doing anything dangerous, clear minorUpdateFrom } diff --git a/resource/schema/userdata.sql b/resource/schema/userdata.sql index 9685169fbe..dad8791a4e 100644 --- a/resource/schema/userdata.sql +++ b/resource/schema/userdata.sql @@ -1,4 +1,4 @@ --- 101 +-- 102 -- Copyright (c) 2009 Center for History and New Media -- George Mason University, Fairfax, Virginia, USA