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, {
project_id: tableMeta.project_id,
table_name: formState.title,
title: formState.title,
})
dialogShow.value = false

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

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

3
scripts/sdk/swagger.json

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

Loading…
Cancel
Save