Skip to content

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

chore: improve baselinng message (#4659)

Tianzhou (天舟)2117c8e2aee7
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
index 7395e98494..456813edcd 100644
--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue
+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
@@ -14,7 +14,9 @@
{{ $t("common.statement") }}
</template>
<span v-if="create" class="text-red-600">*</span>
- <span v-if="sqlHint" class="text-accent">{{ `(${sqlHint})` }}</span>
+ <span v-if="sqlHint" class="ml-1 text-accent">{{
+ `(${sqlHint})`
+ }}</span>
</div>
<button
v-if="allowApplyTaskStateToOthers"
diff --git a/frontend/src/components/Issue/TaskRunTable.vue b/frontend/src/components/Issue/TaskRunTable.vue
index 177f113efe..6a38460c46 100644
--- a/frontend/src/components/Issue/TaskRunTable.vue
+++ b/frontend/src/components/Issue/TaskRunTable.vue
@@ -142,6 +142,7 @@ const comment = (taskRun: TaskRun): string => {
const commentLink = (task: Task, taskRun: TaskRun): CommentLink => {
if (taskRun.status == "DONE") {
switch (taskRun.type) {
+ case "bb.task.database.schema.baseline":
case "bb.task.database.schema.update":
case "bb.task.database.data.update": {
return {
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 80c06786eb..69bd1ff4b0 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -618,7 +618,7 @@
},
"sql-hint": {
"change-will-apply-to-all-tasks-in-tenant-mode": "The change will be applied to all tasks",
- "dont-apply-to-database-in-baseline-migration": "This is a baseline migration and Bytebase won't apply the SQL to the database, it will only record a baseline history",
+ "dont-apply-to-database-in-baseline-migration": "Baselining only records the current schema in the change history and won't apply the SQL to the database",
"snowflake": "Use <<schema>>.<<table>> to specify a Snowflake table"
},
"rollback-from": "This task rollbacks from {link}.",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 413f300b0d..622068d352 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -618,7 +618,7 @@
},
"sql-hint": {
"change-will-apply-to-all-tasks-in-tenant-mode": "改动将会应用到其他所有任务",
- "dont-apply-to-database-in-baseline-migration": "对于建立基线的迁移,Bytebase 不会应用到数据库,只会记录一个基线历史",
+ "dont-apply-to-database-in-baseline-migration": "建立基线只会记录当前的 Schema 到变更历史里,并不会把 SQL 应用到数据库",
"snowflake": "使用 <<schema>>.<<table>> 来标注一个 SnowFlake 的表"
},
"rollback-from": "当前任务回滚自 {link}。",