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

Commit 0897e9c7 by Jochem Maas

the implementation for MySQL

1 parent ec416786
Showing with 5 additions and 0 deletions
...@@ -411,6 +411,11 @@ module.exports = (function() { ...@@ -411,6 +411,11 @@ module.exports = (function() {
template += " PRIMARY KEY" template += " PRIMARY KEY"
} }
if (dataType.comment && Utils._.isString(dataType.comment) && dataType.comment.length) {
template += " COMMENT <%= commentValue %>"
replacements.commentValue = Utils.escape(dataType.comment)
}
result[name] = Utils._.template(template)(replacements) result[name] = Utils._.template(template)(replacements)
} else { } else {
result[name] = dataType result[name] = dataType
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!