Skip to content

Commit

Permalink
HCK-9173: comment out inactive schema statement in script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlikRakhmonov committed Dec 19, 2024
1 parent 5ee1a50 commit baca79b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions forward_engineering/ddlProvider/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ module.exports = (baseProvider, options, app) => {
schemaName: containerData.name,
authorizationName: containerData.authorizationName,
dataCapture: containerData.dataCapture,
isActivated: containerData.isActivated,
};
},

createSchema({ schemaName, ifNotExist, authorizationName, dataCapture }) {
createSchema({ schemaName, ifNotExist, authorizationName, dataCapture, isActivated }) {
const schemaStatement = assignTemplates({
template: templates.createSchema,
templateData: {
Expand All @@ -77,7 +78,7 @@ module.exports = (baseProvider, options, app) => {
},
});

return schemaStatement;
return commentIfDeactivated(schemaStatement, { isActivated });
},

hydrateColumn({ columnDefinition, jsonSchema, schemaData, definitionJsonSchema = {} }) {
Expand Down

0 comments on commit baca79b

Please sign in to comment.