From 3ccf5700a75feb07f5679f177f0abc3dcc74038a Mon Sep 17 00:00:00 2001 From: Vitalii Yarmus Date: Mon, 9 Sep 2024 15:29:35 +0300 Subject: [PATCH] HCK-7932: fix FE of deactivated attributes in delta model --- .../alterScriptHelpers/entityHelpers/addColumnsHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forward_engineering/alterScript/alterScriptHelpers/entityHelpers/addColumnsHelper.js b/forward_engineering/alterScript/alterScriptHelpers/entityHelpers/addColumnsHelper.js index 52b741c1..a45d6e87 100644 --- a/forward_engineering/alterScript/alterScriptHelpers/entityHelpers/addColumnsHelper.js +++ b/forward_engineering/alterScript/alterScriptHelpers/entityHelpers/addColumnsHelper.js @@ -71,7 +71,7 @@ const getAddColumnsScriptsForModifyModifyCollectionScript = const columnsWithoutNotNull = getColumnsWithoutNotNullConstraint(_)(columns); const properties = getEntityProperties(entity); - const columnStatement = getColumnsStatement(columnsWithoutNotNull); + const columnStatement = getColumnsStatement(columnsWithoutNotNull, entity.role?.isActivated ?? true); const fullCollectionName = generateFullEntityName({ entity, dbVersion }); const { hydratedAddIndex, hydratedDropIndex } = hydrateIndex(_)({ entity, properties, definitions, dbVersion }); const dropIndexScript = provider.dropTableIndex(hydratedDropIndex);