Skip to content

Commit

Permalink
HCK-8971: include schema name in index name of DDL
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightlngale committed Dec 4, 2024
1 parent 317f7bf commit 7c56b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forward_engineering/helpers/indexHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ module.exports = app => {
return isParentActivated ? commentIfDeactivated(column, key) : column;
})
.join(',\n\t'),
indexName: index.keyIndex,
indexName: getIndexName({ name: index.name, schemaName: index.schemaName }),
catalog: catalog ? `ON ${catalog}\n` : '',
options: options ? `WITH (\n\t${options}\n)` : '',
terminator,
Expand Down Expand Up @@ -212,7 +212,7 @@ module.exports = app => {
const options = getSpatialOptions(index);

return assignTemplates(templates.spatialIndex, {
name: index.name,
name: getIndexName({ name: index.name, schemaName: index.schemaName }),
table: getTableName(tableName, index.schemaName),
column: `[${index.column.name}]`,
using: index.using ? `\nUSING ${index.using}` : '',
Expand Down

0 comments on commit 7c56b5f

Please sign in to comment.