Skip to content

Commit 0b4feac

Browse files
HCK-14918: comment custom scripts if entity is inactive (#247)
* HCK-14918: comment custom scripts if entity is inactive * m
1 parent 06f7fdc commit 0b4feac

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

forward_engineering/ddlProvider.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,10 +595,7 @@ module.exports = (baseProvider, options, app) => {
595595
),
596596
});
597597
result.tableColumns.push({
598-
name: `${getName(viewData.isCaseSensitive, key.entityName)}.${getName(
599-
viewData.isCaseSensitive,
600-
key.name,
601-
)}`,
598+
name: `${getName(viewData.isCaseSensitive, key.entityName)}.${getName(viewData.isCaseSensitive, key.name)}`,
602599
isActivated: key.isActivated,
603600
});
604601

@@ -1048,6 +1045,10 @@ module.exports = (baseProvider, options, app) => {
10481045
return commentIfDeactivated(statement, data, isPartOfLine);
10491046
},
10501047

1048+
commentStatement(statement) {
1049+
return commentIfDeactivated(statement, { isActivated: false });
1050+
},
1051+
10511052
alterTable(data) {
10521053
if (data.iceberg) {
10531054
return '// Dynamic Iceberg tables are currently only supported for CREATE statements. Specifying DYNAMIC ICEBERG in any other command (for example, ALTER DYNAMIC ICEBERG TABLE <name>) results in an error.';

0 commit comments

Comments
 (0)