Skip to content

Commit 3e08a84

Browse files
committed
docs: add UPDATE/DELETE for data rollback
1 parent 219ac29 commit 3e08a84

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

mintlify/change-database/rollback-data-changes.mdx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@ Backup data is stored within your own database instance in a dedicated `bbdataar
2828

2929
## Supported Operations
3030

31-
Bytebase continues to expand backup and rollback support for additional SQL statement types.
32-
33-
### Feasibility Conditions
34-
3531
Prior backup is feasible when meeting **all** of the following conditions:
3632

37-
- The SQL statement size is less than 2M.
33+
- `UPDATE` or `DELETE`
3834
- No mixed `UPDATE`/`DELETE` on the same table.
35+
- The SQL statement size is less than 2M.
3936
- No mixed DDL/DML.
4037

4138
1-click rollback is feasible when meeting **all** of the following conditions:
@@ -46,10 +43,11 @@ Prior backup is feasible when meeting **all** of the following conditions:
4643

4744
You can enable the **Prior Backup** option either before or after creating a database change issue.
4845

49-
![bb-issue-backup-on](/content/docs/change-database/rollback-data-changes/bb-issue-backup-on.webp)
46+
![bb-issue-backup-on](/content/docs/change-database/rollback-data-changes/bb-issue-backup-on.webp)
5047

5148
<Note>
52-
If the Prior Backup switch appears disabled, navigate to the database page and click **Sync instance** to refresh the database metadata.
49+
If the Prior Backup switch appears disabled, navigate to the database page and click **Sync
50+
instance** to refresh the database metadata.
5351
</Note>
5452

5553
## Perform 1-Click and Multi-Task Rollback
@@ -61,7 +59,8 @@ If the Prior Backup switch appears disabled, navigate to the database page and c
6159
1. You may see multiple rollbackable changes available, depending on your deployment scenario.
6260

6361
<Note>
64-
This could include a single change applied to multiple databases, multiple changes to one database, or a combination of both scenarios.
62+
This could include a single change applied to multiple databases, multiple changes to one
63+
database, or a combination of both scenarios.
6564
</Note>
6665

6766
![bb-issue-done-2](/content/docs/change-database/rollback-data-changes/bb-issue-done-2.webp)
@@ -80,8 +79,8 @@ If the Prior Backup switch appears disabled, navigate to the database page and c
8079

8180
You can examine the stored backup data using Bytebase's SQL Editor to verify what information has been preserved.
8281

83-
![bb-sql-editor-test](/content/docs/change-database/rollback-data-changes/bb-sql-editor-test.webp)
84-
![bb-sql-editor-prod](/content/docs/change-database/rollback-data-changes/bb-sql-editor-prod.webp)
82+
![bb-sql-editor-test](/content/docs/change-database/rollback-data-changes/bb-sql-editor-test.webp)
83+
![bb-sql-editor-prod](/content/docs/change-database/rollback-data-changes/bb-sql-editor-prod.webp)
8584

8685
## Project Backup Settings
8786

@@ -90,7 +89,7 @@ Configure backup behavior at the project level for consistent data protection:
9089
- **Default backup**: Enable **Prior Backup** by default for all changes in the project
9190
- **Error handling**: Control whether to skip backup errors and proceed with data changes
9291

93-
![prior-backup-default](/content/docs/change-database/rollback-data-changes/bb-prior-backup-default.webp)
92+
![prior-backup-default](/content/docs/change-database/rollback-data-changes/bb-prior-backup-default.webp)
9493

9594
## Appendix: Setting Up `bbdataarchive`
9695

0 commit comments

Comments
 (0)