www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 11a056ecd4eb8c7ec67a341b0d947e17a33394ae
parent 70216ea2c7314537a972f68a737264f65daacb46
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 15 Jun 2006 16:28:11 +0000

_getDBVersion() caches the version number, so make sure _updateDBVersion() updates it


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/schema.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/schema.js b/chrome/chromeFiles/content/scholar/xpcom/schema.js @@ -220,6 +220,7 @@ Scholar.Schema = new function(){ * Update a DB schema version tag in an existing database */ function _updateDBVersion(schema, version){ + _dbVersions[schema] = version; var sql = "REPLACE INTO version (schema,version) VALUES (?,?)"; return Scholar.DB.query(sql, [{'string':schema},{'int':version}]); }