|
|
|
@ -662,7 +662,7 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
|
|
|
|
|
NcError.notImplemented( |
|
|
|
|
`Updating ${colBody.uidt} => ${colBody.uidt} is not implemented` |
|
|
|
|
); |
|
|
|
|
} if( |
|
|
|
|
} else if( |
|
|
|
|
[ |
|
|
|
|
UITypes.SingleSelect, |
|
|
|
|
UITypes.MultiSelect |
|
|
|
@ -866,7 +866,6 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
|
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
colBody = getColumnPropsFromUIDT(colBody, base); |
|
|
|
|
|
|
|
|
|
const tableUpdateBody = { |
|
|
|
|
...table, |
|
|
|
|
tn: table.table_name, |
|
|
|
@ -920,7 +919,7 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
|
|
|
|
|
|
|
|
|
|
const sqlMgr = await ProjectMgrv2.getSqlMgr({ id: base.project_id }); |
|
|
|
|
await sqlMgr.sqlOpPlus(base, 'tableUpdate', tableUpdateBody); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await Column.update(req.params.columnId, { |
|
|
|
|
...colBody, |
|
|
|
|
}); |
|
|
|
|