File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ module.exports = function () {
29
29
return this . db . execute (
30
30
`ALTER TABLE ${ table } ADD ${ this . wrap (
31
31
updatedAtColumnName
32
- ) } TIMESTAMP(3) WITHOUT TIME ZONE`,
32
+ ) } TIMESTAMP(3) WITH TIME ZONE`,
33
33
null ,
34
34
options
35
35
)
@@ -44,7 +44,7 @@ module.exports = function () {
44
44
) } (<fields>${
45
45
updatedAtColumnName ? `,"${ updatedAtColumnName } "` : ''
46
46
} ) VALUES (<values>${
47
- updatedAtColumnName ? `,( now() at time zone 'utc' )` : ''
47
+ updatedAtColumnName ? `,now()` : ''
48
48
} ) RETURNING *`
49
49
}
50
50
@@ -54,7 +54,7 @@ module.exports = function () {
54
54
data . identity . name
55
55
) } SET <fields-values>${
56
56
updatedAtColumnName
57
- ? `,"${ updatedAtColumnName } "=( now() at time zone 'utc' )`
57
+ ? `,"${ updatedAtColumnName } "=now()`
58
58
: ''
59
59
} WHERE <primary-keys> RETURNING *`
60
60
}
You can’t perform that action at this time.
0 commit comments