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

Commit bc9caf40 by Sascha Depold

Merge pull request #400 from ricardograca/master

Migrations - renameColumn: Unhandled error if field name doesn't exist
2 parents 75c906a9 5936d8d5
Showing with 1 additions and 1 deletions
...@@ -133,7 +133,7 @@ module.exports = (function() { ...@@ -133,7 +133,7 @@ module.exports = (function() {
return new Utils.CustomEventEmitter(function(emitter) { return new Utils.CustomEventEmitter(function(emitter) {
self.describeTable(tableName).success(function(data) { self.describeTable(tableName).success(function(data) {
data = data.filter(function(h) { return h.Field == attrNameBefore })[0] data = data.filter(function(h) { return h.Field == attrNameBefore })[0] || {}
var options = {} var options = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!