Browse Source

fix: add datatype prop

pull/7304/head
Pranav C 10 months ago
parent
commit
1ba6790778
  1. 1
      packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
  2. 2
      packages/nocodb/src/services/columns.service.ts

1
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;

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

Loading…
Cancel
Save