Skip to content

Commit 714b4d0

Browse files
authored
Merge pull request #6 from DrMyroslav/HCK-1713-deactivated-table-not-commented-in-postgre-sql-script
comment table if it deactivate
2 parents 22d85ac + 1dba456 commit 714b4d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

forward_engineering/ddlProvider.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ module.exports = (baseProvider, options, app) => {
242242
triggers,
243243
});
244244

245-
return [tableStatement, createTriggerStatements].map(_.trim).join('\n\n').trim() + '\n';
245+
return commentIfDeactivated(
246+
[tableStatement, createTriggerStatements].map(_.trim).join('\n\n').trim() + '\n',
247+
{ isActivated }
248+
);
246249
},
247250

248251
convertColumnDefinition(columnDefinition) {

0 commit comments

Comments
 (0)