Skip to content

Commit

Permalink
Merge pull request #43 from lede/master
Browse files Browse the repository at this point in the history
fix for 'spec' is not defined
  • Loading branch information
kunklejr committed Aug 28, 2012
2 parents 18e4993 + bbbbfb9 commit 7236767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/driver/pg.js
Expand Up @@ -131,7 +131,7 @@ var PgDriver = Base.extend({
if (typeof columnSpec.defaultValue == 'string'){ if (typeof columnSpec.defaultValue == 'string'){
defaultValue = "'" + columnSpec.defaultValue + "'"; defaultValue = "'" + columnSpec.defaultValue + "'";
} else { } else {
defaultValue = spec.defaultValue; defaultValue = columnSpec.defaultValue;
} }
sql = util.format("ALTER TABLE %s ALTER COLUMN %s SET DEFAULT %s", tableName, columnName, defaultValue); sql = util.format("ALTER TABLE %s ALTER COLUMN %s SET DEFAULT %s", tableName, columnName, defaultValue);
} else { } else {
Expand Down

0 comments on commit 7236767

Please sign in to comment.