From 1ba679077842c93145bf5a42b2185928cfb909f3 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Jan 2024 13:19:23 +0000 Subject: [PATCH] fix: add datatype prop --- packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts | 1 + packages/nocodb/src/services/columns.service.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts b/packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts index a2460599d8..d961714db1 100644 --- a/packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts +++ b/packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts @@ -1692,6 +1692,7 @@ export class PgUi { colProp.cdf = 'now()'; break; case 'LastModifiedTime': + colProp.dt = 'timestamp'; colProp.cdf = 'now()'; colProp.au = true; break; diff --git a/packages/nocodb/src/services/columns.service.ts b/packages/nocodb/src/services/columns.service.ts index 1f0c26cf06..ec3d3cee89 100644 --- a/packages/nocodb/src/services/columns.service.ts +++ b/packages/nocodb/src/services/columns.service.ts @@ -1722,6 +1722,8 @@ export class ColumnsService { } { + colBody = await getColumnPropsFromUIDT(colBody, source); + // remove default value for SQLite since it doesn't support default value as function when adding column // only support default value as constant value if (source.type === 'sqlite3') {