Skip to content

Commit

Permalink
Fix incremental changelog for relationships. (#16081)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Aug 31, 2021
1 parent e391098 commit 3c8f306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ if (hasFieldConstraint) { _%>
const otherEntityConstraintName = getFKConstraintName(relationship.joinTable.name, getColumnName(relationshipName), prodDatabaseType);
_%>
<addForeignKeyConstraint baseColumnNames="<%= primaryKey.fields.map(field => relationship.columnName + '_' + field.columnName).join(', ') %>"
<addForeignKeyConstraint baseColumnNames="<%= entity.primaryKey.fields.map(field => relationship.columnName + '_' + field.columnName).join(', ') %>"
baseTableName="<%= relationship.joinTable.name %>"
constraintName="<%= constraintName %>"
referencedColumnNames="<%= primaryKey.fields.map(field => field.columnName).join(', ') %>"
referencedColumnNames="<%= entity.primaryKey.fields.map(field => field.columnName).join(', ') %>"
referencedTableName="<%= entityTableName %>"/>
<addForeignKeyConstraint baseColumnNames="<%= relationship.otherEntity.primaryKey.fields.map(field => relationship.columnName + '_' + field.columnName).join(', ') %>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ relationship ManyToOne {
BankAccount{user(login)} to User
}
relationship ManyToMany {
Operation{theLabel(labelName)} to TheLabel{operation}
Operation{theLabel(labelName)} to TheLabel{operation(named)}
}

relationship OneToMany {
Expand Down

0 comments on commit 3c8f306

Please sign in to comment.