Browse Source

refactor: block system column deletion

pull/7304/head
Pranav C 12 months ago
parent
commit
54f6748fd3
  1. 5
      packages/nocodb/src/services/columns.service.ts

5
packages/nocodb/src/services/columns.service.ts

@ -2212,6 +2212,11 @@ export class ColumnsService {
case UITypes.CreateTime:
case UITypes.LastModifiedTime:
{
if (column.system) {
NcError.badRequest(
`The column '${column.column_name}' is a system column and cannot be deleted.`,
);
}
await Column.delete(param.columnId, ncMeta);
}
break;

Loading…
Cancel
Save