Skip to content

Commit a86c1fd

Browse files
HCK-14918: comment custom scripts if entity is inactive (#190)
* HCK-14918: comment custom scripts if entity is inactive * m * Revert "m" This reverts commit 4276965.
1 parent ba78381 commit a86c1fd

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

forward_engineering/ddlProvider/ddlProvider.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ module.exports = (baseProvider, options, app) => {
206206

207207
return commentIfDeactivated(
208208
[tableStatement, createTriggerStatements].map(_.trim).join('\n\n').trim() + '\n',
209-
{ isActivated },
209+
{
210+
isActivated,
211+
},
210212
);
211213
},
212214

@@ -553,7 +555,9 @@ module.exports = (baseProvider, options, app) => {
553555

554556
return commentIfDeactivated(
555557
[createViewScript, createTriggersStatements].map(_.trim).join('\n\n').trim() + '\n',
556-
{ isActivated: !deactivatedWholeStatement },
558+
{
559+
isActivated: !deactivatedWholeStatement,
560+
},
557561
);
558562
},
559563

@@ -797,6 +801,10 @@ module.exports = (baseProvider, options, app) => {
797801
return statement;
798802
},
799803

804+
commentStatement(statement) {
805+
return commentIfDeactivated(statement, { isActivated: false });
806+
},
807+
800808
/**
801809
* @param tableName {string}
802810
* @return string

0 commit comments

Comments
 (0)