diff --git a/packages/noco-docs/docs/050.tables/050.delete-table.md b/packages/noco-docs/docs/050.tables/050.delete-table.md index 1d81ce16bf..90e943704e 100644 --- a/packages/noco-docs/docs/050.tables/050.delete-table.md +++ b/packages/noco-docs/docs/050.tables/050.delete-table.md @@ -2,4 +2,13 @@ title: 'Delete table' --- import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; \ No newline at end of file +import TabItem from '@theme/TabItem'; + +:::danger +**This action cannot be undone.** +::: + +1. Open the table context menu by clicking on `...` from the left sidebar. +2. Click on `Delete` option. + +![image](/img/v2/table-context-menu.png) diff --git a/packages/noco-docs/docs/050.tables/060.actions-on-table.md b/packages/noco-docs/docs/050.tables/060.actions-on-table.md index d0c948e2f8..03ea884474 100644 --- a/packages/noco-docs/docs/050.tables/060.actions-on-table.md +++ b/packages/noco-docs/docs/050.tables/060.actions-on-table.md @@ -2,4 +2,32 @@ title: 'Actions on table' --- import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; \ No newline at end of file +import TabItem from '@theme/TabItem'; + +## Rename table + +1. Open the table context menu by clicking on `...` from the left sidebar. +2. Click on `Rename` option. +3. Enter new table name. +4. Click on `Rename` button. + +![image](/img/v2/table-context-menu-xcdb.png) +![image](/img/v2/rename-table.png) + +## Duplicate table + +1. Open the table context menu by clicking on `...` from the left sidebar. +2. From the dropdown, select `Duplicate` option. +3. Optional configurations + a) `Include data` : You can choose to duplicate the table with or without data. + b) `Include views` : You can choose to duplicate the table with or without views. +4. Click on `Rename Table` button on the confirmation modal. +5. New table will be created with the same schema and data/view as in the original table, based on configurations as specified in step (3). + +:::info +- Duplicate table will be created in the same base as the original table +- Duplicate table will carry suffix ` Copy` in its name. +- Duplicate table option is not available for `External DB` projects +::: + + diff --git a/packages/noco-docs/static/img/v2/duplicate table.png b/packages/noco-docs/static/img/v2/duplicate table.png new file mode 100644 index 0000000000..8e7331f280 Binary files /dev/null and b/packages/noco-docs/static/img/v2/duplicate table.png differ diff --git a/packages/noco-docs/static/img/v2/rename-table.png b/packages/noco-docs/static/img/v2/rename-table.png new file mode 100644 index 0000000000..22f313f27c Binary files /dev/null and b/packages/noco-docs/static/img/v2/rename-table.png differ diff --git a/packages/noco-docs/static/img/v2/table-context-menu-xcdb.png b/packages/noco-docs/static/img/v2/table-context-menu-xcdb.png new file mode 100644 index 0000000000..baf74c66a2 Binary files /dev/null and b/packages/noco-docs/static/img/v2/table-context-menu-xcdb.png differ diff --git a/packages/noco-docs/static/img/v2/table-context-menu.png b/packages/noco-docs/static/img/v2/table-context-menu.png new file mode 100644 index 0000000000..a6d1e6d06d Binary files /dev/null and b/packages/noco-docs/static/img/v2/table-context-menu.png differ