|
|
@ -2059,6 +2059,7 @@ export class ColumnsService { |
|
|
|
req?: any; |
|
|
|
req?: any; |
|
|
|
columnId: string; |
|
|
|
columnId: string; |
|
|
|
user: UserType; |
|
|
|
user: UserType; |
|
|
|
|
|
|
|
forceDeleteSystem?: boolean; |
|
|
|
reuse?: ReusableParams; |
|
|
|
reuse?: ReusableParams; |
|
|
|
}, |
|
|
|
}, |
|
|
|
ncMeta = this.metaService, |
|
|
|
ncMeta = this.metaService, |
|
|
@ -2067,7 +2068,7 @@ export class ColumnsService { |
|
|
|
|
|
|
|
|
|
|
|
const column = await Column.get({ colId: param.columnId }, ncMeta); |
|
|
|
const column = await Column.get({ colId: param.columnId }, ncMeta); |
|
|
|
|
|
|
|
|
|
|
|
if (column.system) { |
|
|
|
if (column.system && !param.forceDeleteSystem) { |
|
|
|
NcError.badRequest( |
|
|
|
NcError.badRequest( |
|
|
|
`The column '${ |
|
|
|
`The column '${ |
|
|
|
column.title || column.column_name |
|
|
|
column.title || column.column_name |
|
|
@ -2424,7 +2425,7 @@ export class ColumnsService { |
|
|
|
...index, |
|
|
|
...index, |
|
|
|
tn: cTable.table_name, |
|
|
|
tn: cTable.table_name, |
|
|
|
columns: [childColumn.column_name], |
|
|
|
columns: [childColumn.column_name], |
|
|
|
indexName: index.index_name, |
|
|
|
indexName: index.key_name, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|