Skip to content

Commit

Permalink
Postgres migrations fix 1602#54
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Apr 2, 2012
1 parent 426efea commit 5c2b995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/postgres.js
Expand Up @@ -274,7 +274,7 @@ PG.prototype.autoupdate = function (cb) {
var wait = 0;
Object.keys(this._models).forEach(function (model) {
wait += 1;
self.query('SELECT column_name as Field, udt_name as Type, is_nullable as Null, column_default as Default FROM information_schema.COLUMNS WHERE table_name = \''+ this.table(model) + '\'', function (err, fields) {
self.query('SELECT column_name as Field, udt_name as Type, is_nullable as Null, column_default as Default FROM information_schema.COLUMNS WHERE table_name = \''+ self.table(model) + '\'', function (err, fields) {
self.alterTable(model, fields, done);
});
});
Expand Down

0 comments on commit 5c2b995

Please sign in to comment.