Browse Source

fix: pass table alias when renaming

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4450/head
Pranav C 2 years ago
parent
commit
183e596b21
  1. 1
      packages/nc-gui/components/dlg/TableRename.vue
  2. 1
      packages/nocodb-sdk/src/lib/Api.ts
  3. 3
      scripts/sdk/swagger.json

1
packages/nc-gui/components/dlg/TableRename.vue

@ -119,6 +119,7 @@ const renameTable = async () => {
await $api.dbTable.update(tableMeta.id as string, { await $api.dbTable.update(tableMeta.id as string, {
project_id: tableMeta.project_id, project_id: tableMeta.project_id,
table_name: formState.title, table_name: formState.title,
title: formState.title,
}) })
dialogShow.value = false dialogShow.value = false

1
packages/nocodb-sdk/src/lib/Api.ts

@ -1950,6 +1950,7 @@ export class Api<
tableId: string, tableId: string,
data: { data: {
table_name?: string; table_name?: string;
title?: string;
project_id?: string; project_id?: string;
}, },
params: RequestParams = {} params: RequestParams = {}

3
scripts/sdk/swagger.json

@ -1703,6 +1703,9 @@
"table_name": { "table_name": {
"type": "string" "type": "string"
}, },
"title": {
"type": "string"
},
"project_id": { "project_id": {
"type": "string" "type": "string"
} }

Loading…
Cancel
Save