Skip to content

Commit

Permalink
HCK-8971: include schema name in index name of DDL (#40)
Browse files Browse the repository at this point in the history
<!--do not remove this marker, its needed to replace info when ticket
title is updated -->
<!--jira-description-action-hidden-marker-start-->

<table>
<td>
<a href="https://hackolade.atlassian.net/browse/HCK-8971"
title="HCK-8971" target="_blank"><img alt="Sub-task"
src="https://hackolade.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10316?size=medium"
/>HCK-8971</a> [BBVA] include schema name in index name of DDL
  </td></table>
  <br />
 

<!--jira-description-action-hidden-marker-end-->
## Content

- Create index script includes schema name
  • Loading branch information
Nightlngale authored Dec 4, 2024
1 parent 9bcf2db commit dfd3415
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 dfd3415

Please sign in to comment.