diff --git a/forward_engineering/ddlProvider/ddlHelpers/index/getIndexName.js b/forward_engineering/ddlProvider/ddlHelpers/index/getIndexName.js index 385df1d..fd2b896 100644 --- a/forward_engineering/ddlProvider/ddlHelpers/index/getIndexName.js +++ b/forward_engineering/ddlProvider/ddlHelpers/index/getIndexName.js @@ -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 = {