mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.4 KiB
38 lines
1.4 KiB
3 years ago
|
---
|
||
|
title: 'Sync Schema'
|
||
3 years ago
|
description: 'Schema changes made to database from outside NocoDB GUI can be synced'
|
||
3 years ago
|
---
|
||
|
|
||
3 years ago
|
## How to sync schema changes to NocoDB
|
||
|
|
||
2 years ago
|
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 one environment to other.
|
||
3 years ago
|
|
||
|
Below are the steps to sync schema changes.
|
||
|
|
||
1 year ago
|
### 1. From the `Project dashboard` > `Data Sources`, click `Sync Metadata`
|
||
3 years ago
|
|
||
1 year ago
|
![sync metadata 2](https://github.com/nocodb/nocodb/assets/86527202/4a553142-8029-4890-bb97-ff37396fb578)
|
||
3 years ago
|
|
||
|
|
||
1 year ago
|
### 2. Changes carried outside GUI, identified by NocoDB are listed under `Sync state`
|
||
2 years ago
|
|
||
1 year ago
|
![sync metadata](https://github.com/nocodb/nocodb/assets/86527202/2cc77704-300d-47da-a570-d01e5ab076c1)
|
||
2 years ago
|
|
||
2 years ago
|
- If changes made to the database are not visible, click `Reload`
|
||
|
- Identified schema changes are identified for each table in `red`
|
||
|
- `Sync now` button gets activated, if Schema changes are identified by NocoDB
|
||
3 years ago
|
|
||
2 years ago
|
![image](https://user-images.githubusercontent.com/35857179/219831855-bcac229c-41b6-4689-b7e1-c3cdfe23a0a1.png)
|
||
3 years ago
|
|
||
3 years ago
|
### 4. Click `Sync Now` to complete Schema sync procedure
|
||
3 years ago
|
|
||
|
#### Notes
|
||
3 years ago
|
|
||
3 years ago
|
1. Column rename operation will be treated like `column delete` & `column create` operation.
|
||
|
2. Only table schema changes identified will be listed under `Sync state`. Any changes to records are automatically synchronized.
|
||
3 years ago
|
|
||
|
|
||
|
|
||
|
|
||
3 years ago
|
|