Browse Source

Update sync-schema.md

pull/914/head
Raju Udava 3 years ago committed by GitHub
parent
commit
a85c98dcbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 31
      packages/noco-docs/content/en/setup-and-usages/sync-schema.md

31
packages/noco-docs/content/en/setup-and-usages/sync-schema.md

@ -7,34 +7,21 @@ menuTitle: 'Sync Schema'
---
## How to sync schema changes to NocoDB.
NocoDB allows you to sync schema changes if you have made changes outside nocodb GUI. However, it has to be noted then you will have to bring your own
NocoDB allows you to sync schema changes if you have made changes outside NocoDB GUI. However, it has to be noted then you will have to bring your own
schema migrations for moving from environment to other.
Below are the steps to sync schema changes.
1. Under `Settings` menubar, click `Project Metadata`
2. Under `Meta Management` tab, click on `Metadata` sub tab.
3. Changes carried outside GUI, identified by NocoDB are listed under `Sync state`
4. Click `Sync Now` to complete Schema sync procedure.
## Example
- Please note there are 3 tables in schema.
![Screen Shot 2021-09-18 at 14 33 56](https://user-images.githubusercontent.com/5435402/133891286-211be50f-e899-4d44-8158-33ce6e7ac4e6.png)
![metasync](https://user-images.githubusercontent.com/86527202/147923717-630f0e0f-7c7a-431c-a50d-8f9376a06eb7.png)
- And NocoDB has just 2 tables.
![Screen Shot 2021-09-18 at 14 42 02](https://user-images.githubusercontent.com/5435402/133891290-43dbfea6-58d1-4712-b3e5-29cc78f1b957.png)
![Screen Shot 2021-09-18 at 14 42 09](https://user-images.githubusercontent.com/5435402/133891292-821da97f-0192-4dcd-b21b-0b5cfc8f5598.png)
## Note
1. Column rename operation will be depcited as amalgamation of Column delete & create operation
2. Only table schema changes identified will be listed under `Sync state`; any changes to records are automatically synchronized.
![Screen Shot 2021-09-18 at 14 42 16](https://user-images.githubusercontent.com/5435402/133891324-32516700-da7b-4b17-a9dd-db54f0b3c3b2.png)
![Screen Shot 2021-09-18 at 14 42 22](https://user-images.githubusercontent.com/5435402/133891327-3fcae301-4d19-410c-a31b-5b1031c5adf3.png)
![Screen Shot 2021-09-18 at 14 42 31](https://user-images.githubusercontent.com/5435402/133891333-3fe574b2-5110-44b6-9b68-9132c3019675.png)
![Screen Shot 2021-09-18 at 14 42 42](https://user-images.githubusercontent.com/5435402/133891336-d04e592d-245c-4e75-b7f0-06e4277b7d29.png)
![Screen Shot 2021-09-18 at 14 42 51](https://user-images.githubusercontent.com/5435402/133891340-ebc86e53-6032-48cc-a3ad-0cc58ee50cc9.png)
![Screen Shot 2021-09-18 at 14 42 59](https://user-images.githubusercontent.com/5435402/133891342-e2f9421f-0e19-4668-a841-55efbc6bf8b2.png)
![Screen Shot 2021-09-18 at 14 43 06](https://user-images.githubusercontent.com/5435402/133891348-77269ff5-fe5b-4d60-836b-3b028b36a3a2.png)

Loading…
Cancel
Save