Hack to manually update from repo on upgrade to 1.0.3

This commit is contained in:
Dan Stillman 2008-01-11 18:51:01 +00:00
parent 8188b9756c
commit 86cb79d455

View File

@ -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");