Skip to content

Commit bb4c0a9

Browse files
HCK-12532: fix "create index" duplicates (#156)
1 parent 6716248 commit bb4c0a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ const getAddColumnsByConditionScriptDtos =
147147
.map(columnDefinition => ddlProvider.addColumn(fullName, columnDefinition))
148148
.map(addColumnScript => AlterScriptDto.getInstance([addColumnScript], true, false));
149149

150-
const indexesOnNewlyCreatedColumns = getNewlyCreatedIndexesScripts({ dbVersion, collection });
151-
return scripts.concat(indexesOnNewlyCreatedColumns).filter(Boolean);
150+
return scripts.filter(Boolean);
152151
};
153152

154153
/**

0 commit comments

Comments
 (0)