Skip to content

Commit

Permalink
Merge pull request #113 from hackolade/HCK-3564_alter_script_for_comm…
Browse files Browse the repository at this point in the history
…ent_modification

HCK-3564: remove quotes from types in script statements
  • Loading branch information
mtseluiko authored Jun 27, 2023
2 parents 9ac1339 + af3a2f9 commit 20513fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions forward_engineering/ddlProvider/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = app => {
const alterTablePrefixStatement = alterTablePrefix(tableName, keyspaceName);


return assignTemplates(templates.addEntity, {alterTablePrefixStatement, name: wrapInQuotes(columnData.name), type: wrapInQuotes(columnData.type)});
return assignTemplates(templates.addEntity, {alterTablePrefixStatement, name: wrapInQuotes(columnData.name), type: columnData.type});
},

deleteEntity(modelData) {
Expand All @@ -122,7 +122,7 @@ module.exports = app => {
const { keySpaceName, udtName, columnData } = modelData;
const alterTypePrefixStatement = getAlterTypePrefix(keySpaceName);

return assignTemplates(templates.updateType, {alterTypePrefixStatement, udtName: wrapInQuotes(udtName), name: wrapInQuotes(columnData.name), type: columnData.type});
return assignTemplates(templates.updateUdtType, {alterTypePrefixStatement, udtName: wrapInQuotes(udtName), name: wrapInQuotes(columnData.name), type: columnData.type});
},

renameType(modelData) {
Expand All @@ -141,7 +141,7 @@ module.exports = app => {
const { tableName, keyspaceName, columnData } = modelData;
const alterTablePrefixStatement = alterTablePrefix(tableName, keyspaceName);

return assignTemplates(templates.updateType, {alterTablePrefixStatement, name: wrapInQuotes(columnData.name), type: wrapInQuotes(columnData.type)});
return assignTemplates(templates.updateType, {alterTablePrefixStatement, name: wrapInQuotes(columnData.name), type: columnData.type});
},

updateTableOptions(compMod, tableName, isGetOptionScript) {
Expand Down

0 comments on commit 20513fc

Please sign in to comment.