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

Commit f0bddbf5 by Jan Scheurer

ws

1 parent 5f46ef87
Showing with 2 additions and 2 deletions
......@@ -190,8 +190,8 @@ module.exports = (function() {
}
} else {
var newAttributes = {}
, sourceKeys = Object.keys(this.source.primaryKeys)
, keyType = ((this.source.hasPrimaryKeys && sourceKeys.length === 1) ? this.source.rawAttributes[sourceKeys[0]].type : DataTypes.INTEGER)
, sourceKeys = Object.keys(this.source.primaryKeys)
, keyType = ((this.source.hasPrimaryKeys && sourceKeys.length === 1) ? this.source.rawAttributes[sourceKeys[0]].type : DataTypes.INTEGER)
newAttributes[this.identifier] = { type: this.options.keyType || keyType}
Helpers.addForeignKeyConstraints(newAttributes[this.identifier], this.source, this.target, this.options)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!