Skip to content

Commit b30a849

Browse files
author
unknown
committed
Fixed error with updating composite pk name
1 parent bd69424 commit b30a849

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

forward_engineering/alterScript/alterScriptHelpers/entityHelpers/primaryKeyHelper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const getConstraintNameForCompositePk = (primaryKey, entityName) => {
4545

4646
/**
4747
* @param _
48-
* @param wrapInQuotes {(s: string) => string }
4948
* @return {(
5049
* primaryKey: AlterCollectionRoleCompModPKDto,
5150
* entityName: string,
@@ -72,7 +71,7 @@ const getCreateCompositePKDDLProviderConfig = (_) => (
7271
entity
7372
) => {
7473
const constraintName = getConstraintNameForCompositePk(primaryKey, entityName);
75-
const pkColumns = _.toPairs(entity.properties)
74+
const pkColumns = _.toPairs(entity.role.properties)
7675
.filter(([name, jsonSchema]) => Boolean(primaryKey.compositePrimaryKey.find(keyDto => keyDto.keyId === jsonSchema.GUID)))
7776
.map(([name, jsonSchema]) => ({
7877
name,

0 commit comments

Comments
 (0)