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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user