diff --git a/forward_engineering/ddlProvider/ddlProvider.js b/forward_engineering/ddlProvider/ddlProvider.js index d61f8cb..42d6c63 100644 --- a/forward_engineering/ddlProvider/ddlProvider.js +++ b/forward_engineering/ddlProvider/ddlProvider.js @@ -734,6 +734,7 @@ module.exports = (baseProvider, options, app) => { tableName: data.entityName, alias: data.alias, isActivated: data.isActivated, + dbName: data.dbName, }; }, diff --git a/forward_engineering/utils/general.js b/forward_engineering/utils/general.js index 93453f2..c9ca769 100644 --- a/forward_engineering/utils/general.js +++ b/forward_engineering/utils/general.js @@ -199,7 +199,7 @@ module.exports = _ => { return result; } - let tableName = wrapInQuotes(key.tableName); + const tableName = `${wrapInQuotes(key.dbName)}.${wrapInQuotes(key.tableName)}`; if (!result.tables.includes(tableName)) { result.tables.push(tableName);