From 86cb79d455c5c0daa926880e43483f99ef6a3937 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 11 Jan 2008 18:51:01 +0000 Subject: [PATCH] Hack to manually update from repo on upgrade to 1.0.3 --- chrome/content/zotero/xpcom/schema.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 6b5740b0b..781ae5f19 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -203,6 +203,16 @@ Zotero.Schema = new function(){ * since the last check **/ function updateScrapersRemote(force, callback) { + // Little hack to manually update from repo on upgrade to 1.0.3 + if (!force) { + var syncTargetVersion = 1; // increment this when releasing new version that requires it + var syncVersion = _getDBVersion('sync'); + if (syncVersion < syncTargetVersion) { + _updateDBVersion('sync', syncTargetVersion); + force = true; + } + } + if (!force){ if (_remoteUpdateInProgress) { Zotero.debug("A remote update is already in progress -- not checking repository");