From bd02a6ca9baa49e564d6644472b1c61132797ce1 Mon Sep 17 00:00:00 2001 From: Vitalii Yarmus <71256742+Vitalii4as@users.noreply.github.com> Date: Tue, 17 Sep 2024 17:26:43 +0300 Subject: [PATCH] HCK-8025: skip wrapping in quotes of CURRENT_USER (#45) --- .../ddlProvider/ddlHelpers/columnDefinitionHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forward_engineering/ddlProvider/ddlHelpers/columnDefinitionHelper.js b/forward_engineering/ddlProvider/ddlHelpers/columnDefinitionHelper.js index b62dceb..1272df3 100644 --- a/forward_engineering/ddlProvider/ddlHelpers/columnDefinitionHelper.js +++ b/forward_engineering/ddlProvider/ddlHelpers/columnDefinitionHelper.js @@ -77,7 +77,7 @@ module.exports = ({ _, wrap, assignTemplates, templates, commentIfDeactivated, w const isDateTime = type => ['date', 'time', 'timestamp', 'interval'].includes(type); const decorateDefault = (type, defaultValue, isArrayType) => { - const constantsValues = ['current_timestamp', 'null']; + const constantsValues = ['current_timestamp', 'current_user', 'null']; if ( (isString(type) || isDateTime(type)) && !constantsValues.includes(_.toLower(defaultValue)) &&