From ddc19da97554edb5dac90688cc095663e1cea5d9 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Fri, 29 Nov 2024 17:56:51 +0200 Subject: [PATCH] HCK-8896: fix script --- forward_engineering/helpers/viewHelper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forward_engineering/helpers/viewHelper.js b/forward_engineering/helpers/viewHelper.js index c52e103..95492b9 100644 --- a/forward_engineering/helpers/viewHelper.js +++ b/forward_engineering/helpers/viewHelper.js @@ -103,7 +103,7 @@ function getDefaultColumnList(properties) { }) .join(',\n'); - return list ? `(${list})` : ''; + return list ? `\n(${list}\n)` : ''; } function getTableSelectStatement({ _, collectionRefsDefinitionsMap, columns }) { @@ -111,7 +111,7 @@ function getTableSelectStatement({ _, collectionRefsDefinitionsMap, columns }) { const columnsNames = getColumnNames(_)(collectionRefsDefinitionsMap, columns); if (fromStatement && columnsNames?.length) { - return `AS SELECT ${joinColumnNames(columnsNames)}\n${fromStatement}`; + return `\nAS SELECT ${joinColumnNames(columnsNames)}\n${fromStatement}`; } return '';