We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6996cec commit 30f4a9dCopy full SHA for 30f4a9d
components/gitpod-db/src/typeorm/transformer.ts
@@ -27,7 +27,8 @@ export namespace Transformer {
27
export const MAP_ISO_STRING_TO_TIMESTAMP_DROP: ValueTransformer = {
28
to(value: any): any {
29
// DROP all input values as they are set by the DB 'ON UPDATE'/ as default value
30
- return undefined;
+ // HACK: Emulate `ON UPDATE CURRENT_TIMESTAMP(6)` to work around https://github.com/gitpod-io/gitpod/issues/4169
31
+ return new Date().toISOString().replace('T', ' ').replace('Z', '000');
32
},
33
from(value: any): any {
34
// From TIMESTAMP to ISO string
0 commit comments