Permalink
Browse files

Inserting MIGRATOR_TABLE reference on line 54.

  • Loading branch information...
nanodeath committed Jan 7, 2011
1 parent de8de4d commit e6836e8c1698966bbbd983a4ca3e255cff312afb
Showing with 1 addition and 1 deletion.
  1. +1 −1 migrator.js
View
@@ -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]);

0 comments on commit e6836e8

Please sign in to comment.