Skip to content

Commit

Permalink
fix alter script generation with an empty index (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
taras-dubyk authored Jul 24, 2024
1 parent 789feca commit 0eb2065
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
);

Expand Down

0 comments on commit 0eb2065

Please sign in to comment.