Permalink
Browse files

Merge pull request #43 from lede/master

fix for 'spec' is not defined
  • Loading branch information...
2 parents 18e4993 + bbbbfb9 commit 72367677f501049b98e81bac7e2e179b176caa78 @kunklejr kunklejr committed Aug 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/driver/pg.js
View
@@ -131,7 +131,7 @@ var PgDriver = Base.extend({
if (typeof columnSpec.defaultValue == 'string'){
defaultValue = "'" + columnSpec.defaultValue + "'";
} else {
- defaultValue = spec.defaultValue;
+ defaultValue = columnSpec.defaultValue;
}
sql = util.format("ALTER TABLE %s ALTER COLUMN %s SET DEFAULT %s", tableName, columnName, defaultValue);
} else {

0 comments on commit 7236767

Please sign in to comment.