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

This commit is contained in:
Dan Stillman 2006-06-15 16:28:11 +00:00
parent 70216ea2c7
commit 11a056ecd4

View file

@ -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}]);
}