Skip to content

Commit

Permalink
feat(comment): Add comment spec for columns
Browse files Browse the repository at this point in the history
Columns can have comment if the 'comment' property is set in the column definition.

Relates to #558
  • Loading branch information
Nosfistis committed Jun 19, 2018
1 parent b90fdec commit b7297d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ var MysqlDriver = Base.extend({
}
}

if (spec.comment) {
constraint.push('COMMENT \'' + spec.comment + '\'')
}

if (spec.foreignKey) {

cb = this.bindForeignKey(tableName, columnName, spec.foreignKey);
Expand Down

0 comments on commit b7297d6

Please sign in to comment.