Timestamp column migration in all workspace schema tables (#13679)

fixes https://github.com/twentyhq/private-issues/issues/288

Test with : 
`npx nx run twenty-server:command
upgrade:1-3:update-timestamp-column-type-in-workspace-schema`
This commit is contained in:
Etienne
2025-08-06 22:12:52 +02:00
committed by GitHub
parent e857860e21
commit 723f1016a6
9 changed files with 80 additions and 42 deletions
@@ -90,6 +90,8 @@ export class EntitySchemaColumnFactory {
entitySchemaColumnMap[key] = {
name: key,
type: columnType as ColumnType,
precision:
fieldMetadata.type === FieldMetadataType.DATE_TIME ? 3 : undefined,
// TODO: We should double check that
primary: key === 'id',
nullable: fieldMetadata.isNullable ?? false,