Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: update rollback sql tips (#5715)

Liu Ji1cf2a1c5776a
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 445d15ea97..9ac7d2298c 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -327,7 +327,7 @@
"generating": "Generating",
"empty-rollback-statement": "The rollback statement is empty",
"cancel-generating": "Cancel generating the SQL rollback",
- "sql-rollback-tips": "When enabled, Bytebase will keep the rollback logs for the data change\nand allow you to create a new issue to revert this change. {link}"
+ "sql-rollback-tips": "When enabled, Bytebase will keep the rollback logs for the data change\nand allow you to create a new issue to revert this change.\nWarning: If the table does not have a primary key. Undo SQL may affect\nduplicate rows. Please carefully confirm before executing.\n{link}"
},
"skip-failed-in-current-stage": "Skip failed tasks in current stage"
},
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index d5e4030592..91ff06034c 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -325,7 +325,7 @@
"generating": "生成中",
"empty-rollback-statement": "回滚语句为空",
"cancel-generating": "取消生成回滚语句",
- "sql-rollback-tips": "开启时,Bytebase 会保留数据变更的回滚日志,\n可以用于创建一个新的工单来回滚这次变更。{link}"
+ "sql-rollback-tips": "开启时,Bytebase 会保留数据变更的回滚日志,\n可以用于创建一个新的工单来回滚这次变更。\n警告:如果你的数据表没有主键,回滚语句可能\n会影响重复的行。执行前请注意确认。\n{link}"
},
"skip-failed-in-current-stage": "跳过当前阶段失败的任务"
},