不要怂,就是干,撸起袖子干!

Commit 36e57b40 by Roman Ostolosh

Update lib/dialects/postgres/query-generator.js

Fix a bug 'definition is not defined' in changeColumn method for PostrgeSQL migrations
1 parent f5393a25
Showing with 1 additions and 0 deletions
......@@ -142,6 +142,7 @@ module.exports = (function() {
, sql = []
for (var attributeName in attributes) {
var definition = attributes[attributeName]
var attrSql = ''
if (definition.indexOf('NOT NULL') > 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!