Skip to content

Commit 1401872

Browse files
authored
HCK-8025: skip wrapping in quotes of CURRENT_USER (#119)
1 parent 077daa8 commit 1401872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forward_engineering/ddlProvider/ddlHelpers/columnDefinitionHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = ({ _, assignTemplates, templates, commentIfDeactivated, wrapCom
7777
const isDateTime = type => ['date', 'time', 'timestamp', 'interval'].includes(type);
7878

7979
const decorateDefault = (type, defaultValue, isArrayType) => {
80-
const constantsValues = ['current_timestamp', 'null'];
80+
const constantsValues = ['current_timestamp', 'current_user', 'null'];
8181
if (
8282
(isString(type) || isDateTime(type)) &&
8383
!constantsValues.includes(_.toLower(defaultValue)) &&

0 commit comments

Comments
 (0)