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 7b0760a commit 7fc6ebf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion forward_engineering/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ module.exports = (baseProvider, options, app) => {
defaultExpiration,
customerEncryptionKey,
labels,
isActivated,
}) {
return assignTemplates(templates.createDatabase, {
const statement = assignTemplates(templates.createDatabase, {
name: getFullName(projectId, databaseName),
ifNotExist: ifNotExist ? ' IF NOT EXISTS' : '',
dbOptions: getContainerOptions({
Expand All @@ -53,6 +54,7 @@ module.exports = (baseProvider, options, app) => {
labels,
}),
});
return commentIfDeactivated(statement, { isActivated });
},

createTable(
Expand Down

0 comments on commit 7fc6ebf

Please sign in to comment.