Skip to content

Commit

Permalink
Inserting MIGRATOR_TABLE reference on line 54.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanodeath committed Jan 7, 2011
1 parent de8de4d commit e6836e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrator.js
Expand Up @@ -51,7 +51,7 @@ function Migrator(db){
throw "Migrator is only valid once -- create a new one if you want to do another migration.";
}
db.transaction(function(t){
t.executeSql("select version from _migrator_schema", [], function(t, res){
t.executeSql("select version from " + MIGRATOR_TABLE, [], function(t, res){
var rows = res.rows;
var version = rows.item(0).version;
debug(Migrator.DEBUG_HIGH, "Existing database present, migrating from %d", [version]);
Expand Down

0 comments on commit e6836e8

Please sign in to comment.