From ae0b7de472849bf9c4e6a4e72ad5041839b65d80 Mon Sep 17 00:00:00 2001 From: Alik Date: Thu, 19 Dec 2024 17:56:46 +0100 Subject: [PATCH] HCK-9173: comment out inactive schema statement in script (#45)
Sub-bugHCK-9173 Statements are still incorrectly present in DDL/Script tab after 'isActivated' is disabled

## Content You have no Jira task for this PR? Describe your changes here... ... ## Technical details You feel the need to provide technical explanations? You can do it here... ... --- forward_engineering/ddlProvider/ddlProvider.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forward_engineering/ddlProvider/ddlProvider.js b/forward_engineering/ddlProvider/ddlProvider.js index 2903eb0..ddcceb6 100644 --- a/forward_engineering/ddlProvider/ddlProvider.js +++ b/forward_engineering/ddlProvider/ddlProvider.js @@ -64,10 +64,11 @@ module.exports = (baseProvider, options, app) => { schemaName: containerData.name, authorizationName: containerData.authorizationName, dataCapture: containerData.dataCapture, + isActivated: containerData.isActivated, }; }, - createSchema({ schemaName, ifNotExist, authorizationName, dataCapture }) { + createSchema({ schemaName, ifNotExist, authorizationName, dataCapture, isActivated = true }) { const schemaStatement = assignTemplates({ template: templates.createSchema, templateData: { @@ -77,7 +78,7 @@ module.exports = (baseProvider, options, app) => { }, }); - return schemaStatement; + return commentIfDeactivated(schemaStatement, { isActivated }); }, hydrateColumn({ columnDefinition, jsonSchema, schemaData, definitionJsonSchema = {} }) {