Skip to content

Commit

Permalink
Update add_relationship_constraints.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Oct 21, 2024
1 parent fdbb772 commit 83804c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if (relationshipType === 'many-to-one' || (relationshipType === 'one-to-one' &&
baseColumnNames = relationship.otherEntity.primaryKey.fields.map(field => relationship.columnName + '_' + field.columnName).join(',');
referencedColumnNames = relationship.otherEntity.primaryKey.fields.map(field => field.columnName).join(',');
} _%>
<addForeignKeyConstraint baseColumnNames="<%= baseColumnNames %>"
baseTableName="<%= entity.entityTableName %>"
constraintName="<%= constraintName %>"
Expand Down Expand Up @@ -76,4 +77,4 @@ if (relationshipType === 'many-to-one' || (relationshipType === 'one-to-one' &&
<%_ } _%>
<%_ } _%>
/>
<%_ } _%>
<%_ } _%>

0 comments on commit 83804c4

Please sign in to comment.