From 3c1deddf85b2d93e5e262ba825ebba9e5ccc0b6b Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Thu, 5 Dec 2024 13:25:55 +0200 Subject: [PATCH] Revert "HCK-8971: include schema name in index name of DDL (#40)" This reverts commit dfd3415b909453a051cd3e9616aa08651fdd187f. --- .../ddlProvider/ddlHelpers/index/getIndexName.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/forward_engineering/ddlProvider/ddlHelpers/index/getIndexName.js b/forward_engineering/ddlProvider/ddlHelpers/index/getIndexName.js index fd2b896..385df1d 100644 --- a/forward_engineering/ddlProvider/ddlHelpers/index/getIndexName.js +++ b/forward_engineering/ddlProvider/ddlHelpers/index/getIndexName.js @@ -2,9 +2,7 @@ const { wrapInQuotes } = require('../../../utils/general'); const { getBasicValue } = require('../options/getOptionsByConfigs'); const getIndexName = ({ index }) => { - const indexName = getBasicValue({ prefix: '', modifier: name => wrapInQuotes({ name }) })(index.indxName); - - return index.schemaName ? ` ${wrapInQuotes({ name: index.schemaName })}.${indexName}` : ` ${indexName}`; + return getBasicValue({ prefix: ' ', modifier: name => wrapInQuotes({ name }) })(index.indxName); }; module.exports = {