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') {