Skip to content

Commit 3801dc4

Browse files
author
DrMyroslav
committed
comment table if it deactivate
1 parent 22d85ac commit 3801dc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

forward_engineering/ddlProvider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ module.exports = (baseProvider, options, app) => {
211211
const openParenthesis = isEmptyPartitionBody ? '' : '(';
212212
const closeParenthesis = isEmptyPartitionBody ? '' : ')';
213213

214-
const tableStatement = assignTemplates(template, {
214+
let tableStatement = assignTemplates(template, {
215215
temporary: getTableTemporaryValue(temporary, unlogged),
216216
ifNotExist: ifNotExistStr,
217217
name: tableName,
@@ -236,6 +236,8 @@ module.exports = (baseProvider, options, app) => {
236236
closeParenthesis,
237237
});
238238

239+
tableStatement = (commentIfDeactivated(tableStatement.trim() + '\n', { isActivated }));
240+
239241
const createTriggerStatements = getTriggersScript({
240242
dbVersion: schemaData.dbVersion,
241243
tableName,

0 commit comments

Comments
 (0)