Skip to content

Commit

Permalink
Reapply "HCK-8971: include schema name in index name of DDL (#40)"
Browse files Browse the repository at this point in the history
This reverts commit 3c1dedd.
  • Loading branch information
Nightlngale committed Dec 5, 2024
1 parent 3c1dedd commit 7c01abe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const { wrapInQuotes } = require('../../../utils/general');
const { getBasicValue } = require('../options/getOptionsByConfigs');

const getIndexName = ({ index }) => {
return getBasicValue({ prefix: ' ', modifier: name => wrapInQuotes({ name }) })(index.indxName);
const indexName = getBasicValue({ prefix: '', modifier: name => wrapInQuotes({ name }) })(index.indxName);

return index.schemaName ? ` ${wrapInQuotes({ name: index.schemaName })}.${indexName}` : ` ${indexName}`;
};

module.exports = {
Expand Down

0 comments on commit 7c01abe

Please sign in to comment.