Skip to content

Commit

Permalink
FE: added Fe of definition comment when reference have no comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii4as committed May 3, 2022
1 parent 5800588 commit 84b77b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions forward_engineering/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ module.exports = (baseProvider, options, app) => {
};
},

hydrateColumn({ columnDefinition, jsonSchema, schemaData }) {
hydrateColumn({ columnDefinition, jsonSchema, schemaData, definitionJsonSchema }) {
const collationRule = _.includes(['char', 'varchar', 'text'], columnDefinition.type)
? jsonSchema.collationRule
: '';
Expand All @@ -498,7 +498,7 @@ module.exports = (baseProvider, options, app) => {
unique: keyHelper.isInlineUnique(jsonSchema),
nullable: columnDefinition.nullable,
default: columnDefinition.default,
comment: jsonSchema.description,
comment: jsonSchema.refDescription || jsonSchema.description || definitionJsonSchema.description,
isActivated: columnDefinition.isActivated,
scale: columnDefinition.scale,
precision: columnDefinition.precision,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"versionDate": "2022-03-25",
"author": "hackolade",
"engines": {
"hackolade": "5.4.4",
"hackolade": "6.0.7",
"hackoladePlugin": "1.2.0"
},
"contributes": {
Expand Down

0 comments on commit 84b77b3

Please sign in to comment.