diff --git a/forward_engineering/ddlProvider/ddlHelpers/viewHelper.js b/forward_engineering/ddlProvider/ddlHelpers/viewHelper.js index 5c458ac..66b1fb6 100644 --- a/forward_engineering/ddlProvider/ddlHelpers/viewHelper.js +++ b/forward_engineering/ddlProvider/ddlHelpers/viewHelper.js @@ -31,7 +31,7 @@ module.exports = ({ _, wrapInQuotes }) => { return result; } - let tableName = wrapInQuotes(key.tableName); + const tableName = `${wrapInQuotes(key.dbName)}.${wrapInQuotes(key.tableName)}`; if (!result.tables.includes(tableName)) { result.tables.push(tableName); diff --git a/forward_engineering/ddlProvider/ddlProvider.js b/forward_engineering/ddlProvider/ddlProvider.js index 9464574..136d943 100644 --- a/forward_engineering/ddlProvider/ddlProvider.js +++ b/forward_engineering/ddlProvider/ddlProvider.js @@ -479,6 +479,7 @@ module.exports = (baseProvider, options, app) => { tableName: data.entityName, alias: data.alias, isActivated: data.isActivated, + dbName: data.dbName, }; },