_getDBVersion() caches the version number, so make sure _updateDBVersion() updates it
This commit is contained in:
parent
70216ea2c7
commit
11a056ecd4
1 changed files with 1 additions and 0 deletions
|
@ -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}]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue