diff --git a/forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js b/forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js index f96f737..ae71a94 100644 --- a/forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js +++ b/forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js @@ -167,7 +167,7 @@ const getNewlyCreatedIndexesScripts = ({ _, ddlProvider, dbVersion, collection } return []; } - const doAnyIndexUseNewlyCreatedColumn = newIndexes.some(({ columns }) => + const doAnyIndexUseNewlyCreatedColumn = newIndexes.some(({ columns = [] }) => columns.find(({ keyId }) => propertiesIds.includes(keyId)), );