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

Commit 03ca0291 by Martin Aspeli

Fixes after rebase

1 parent 417a832a
Showing with 4 additions and 4 deletions
......@@ -456,17 +456,17 @@ module.exports = (function() {
if(dataType.referencesKeys) {
// TODO: This isn't really right - for composite primary keys we need a different approach
template += "(" + dataType.referencesKeys.map(Utils.addTicks).join(', ') + ")"
template += " (" + dataType.referencesKeys.map(Utils.addTicks).join(', ') + ")"
} else {
template += "(" + Utils.addTicks('id') + ")"
template += " (" + Utils.addTicks('id') + ")"
}
if(dataType.onDelete) {
template += " ON DELETE " + dataType.onDeleteAction.toUpperCase()
template += " ON DELETE " + dataType.onDelete.toUpperCase()
}
if(dataType.onUpdate) {
template += " ON UPDATE " + dataType.onUpdateAction.toUpperCase()
template += " ON UPDATE " + dataType.onUpdate.toUpperCase()
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!