Skip to content

Commit

Permalink
HCK-9173: comment out inactive schema statement in script (#62)
Browse files Browse the repository at this point in the history
* HCK-9173: comment out inactive schema statement in script

* fix
  • Loading branch information
AlikRakhmonov authored Dec 19, 2024
1 parent 7b0760a commit 4f81cf7
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 = true,
}) {
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 4f81cf7

Please sign in to comment.