Skip to content

Commit

Permalink
HCK-8896: fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightlngale committed Nov 29, 2024
1 parent 8646e27 commit bc962ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion forward_engineering/ddlProvider/ddlTemplates.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
createView:
'CREATE${orReplace}${global}${temporary} VIEW${ifNotExists} ${name}${columnList}${schemaBinding}${comment}${tablePropertyStatements}${query};${viewUnityTagsStatements}',
'CREATE${orReplace}${global}${temporary} VIEW${ifNotExists} ${name} ${columnList}${schemaBinding}${comment}${tablePropertyStatements}${query};${viewUnityTagsStatements}',

dropView: 'DROP VIEW IF EXISTS ${name};',

Expand Down
2 changes: 1 addition & 1 deletion forward_engineering/utils/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const wrapInTicks = (str = '') => {
};

const wrapInBrackets = (str = '') => {
return /^\(\S+\)$/.test(str) ? str : `(${str})`;
return /^\(.*\)$/.test(str) ? str : `(${str})`;
};

/**
Expand Down

0 comments on commit bc962ef

Please sign in to comment.