From 41f739f040ed4b45a75020b790d7f54343c2efa8 Mon Sep 17 00:00:00 2001 From: Vitalii Yarmus Date: Mon, 9 Sep 2024 14:59:45 +0300 Subject: [PATCH] HCK-7931: fix commenting out of DROP statements with a checkbox --- .../alterScript/alterScriptHelpers/alterEntityHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js b/forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js index b0aebbee..0957a073 100644 --- a/forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js +++ b/forward_engineering/alterScript/alterScriptHelpers/alterEntityHelper.js @@ -165,7 +165,7 @@ const getDeleteColumnsScripts = (app, definitions, provider, dbVersion) => entit const dropIndexScriptDto = AlterScriptDto.getInstance([dropIndexScript], true, true); const addIndexScriptDto = AlterScriptDto.getInstance([addIndexScript], true, false); - const deleteColumnScriptDto = AlterScriptDto.getInstance([deleteColumnScript], true, false); + const deleteColumnScriptDto = AlterScriptDto.getInstance([deleteColumnScript], true, true); if (modifyScript.type === 'new') { return [dropIndexScriptDto, ...(modifyScript.script || []), addIndexScriptDto].filter(Boolean);