From d171c737849d39cd677e224147e4c4062d6132c4 Mon Sep 17 00:00:00 2001 From: Vitalii Yarmus <71256742+Vitalii4as@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:57:59 +0300 Subject: [PATCH] HCK-7455: FE cross-target relationships in container level script (#125) --- forward_engineering/ddlProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forward_engineering/ddlProvider.js b/forward_engineering/ddlProvider.js index d35a2cea..75e11b96 100644 --- a/forward_engineering/ddlProvider.js +++ b/forward_engineering/ddlProvider.js @@ -470,12 +470,12 @@ module.exports = (baseProvider, options, app) => { const foreignKeyStatement = assignTemplates(templates.alterTableForeignKey, { constraint: fkData.name ? `CONSTRAINT ${getName(schemaData.isCaseSensitive, fkData.name)} ` : '', table_name: getFullName( - schemaData.schemaName, + fkData.foreignSchemaName, getName(fkData.foreignTableIsCaseSensitive, fkData.foreignTable), ), columns: foreignKeys, primary_table: getFullName( - schemaData.schemaName, + fkData.primarySchemaName, getName(fkData.primaryTableIsCaseSensitive, fkData.primaryTable), ), primary_columns: primaryKeys,