From 14018725d2c67b0e984b0b184bf1c02cd73a3d15 Mon Sep 17 00:00:00 2001 From: Vitalii Yarmus <71256742+Vitalii4as@users.noreply.github.com> Date: Tue, 17 Sep 2024 17:26:45 +0300 Subject: [PATCH] HCK-8025: skip wrapping in quotes of CURRENT_USER (#119) --- .../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 f5bfeee..5dac12b 100644 --- a/forward_engineering/ddlProvider/ddlHelpers/columnDefinitionHelper.js +++ b/forward_engineering/ddlProvider/ddlHelpers/columnDefinitionHelper.js @@ -77,7 +77,7 @@ module.exports = ({ _, assignTemplates, templates, commentIfDeactivated, wrapCom 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)) &&