Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: rename "Migration History" to "Change History" (#4367)
Liu Jib64b38507657
diff --git a/frontend/public/demo/schema-migration-history/demo.json b/frontend/public/demo/schema-migration-history/demo.jsonindex dc3c247988..21afeb3c3d 100644--- a/frontend/public/demo/schema-migration-history/demo.json+++ b/frontend/public/demo/schema-migration-history/demo.json@@ -6,9 +6,9 @@"description": "This is schema drift page"},{- "url": "/db/employee-103#migration-history",- "title": "migration history",- "description": "This is migration history page"+ "url": "/db/employee-103#change-history",+ "title": "change history",+ "description": "This is change history page"},{"url": "/issue/104?stage=test-employee-1&task=update-employee-schema-105",@@ -45,9 +45,9 @@}},{- "selector": "[data-label='bb-migration-history-establish-baseline-alert'] [data-label='bb-alert-ok-button']",+ "selector": "[data-label='bb-change-history-establish-baseline-alert'] [data-label='bb-alert-ok-button']","type": "shield",- "url": "/db/.+?#migration-history$",+ "url": "/db/.+?#change-history$","dialog": {"title": "","description": {@@ -70,8 +70,8 @@}},{- "selector": "[data-label='bb-migration-history-table'] tr:nth-child(2) > td:nth-child(4) > a",- "url": "/db/.+?#migration-history$",+ "selector": "[data-label='bb-change-history-table'] tr:nth-child(2) > td:nth-child(4) > a",+ "url": "/db/.+?#change-history$","type": "tooltip","position": "center","dialog": {@@ -85,14 +85,14 @@}},{- "selector": "[data-label='bb-migration-history-view-drift-button']",+ "selector": "[data-label='bb-change-history-view-drift-button']","url": "/db/.+?/history/.+","type": "tooltip","position": "center","dialog": {"title": "","description": {- "en-US": "This migration task also detected schema drift. It means another client performed some schema changes which were out of version control.",+ "en-US": "This change task also detected schema drift. It means another client performed some schema changes which were out of version control.","zh-CN": "本次变更还检测到了 Schema 偏差,说明有数据库变更通过其他客户端发起,脱离了版本管控"},"alwaysShow": true,diff --git a/frontend/src/components/Breadcrumb.vue b/frontend/src/components/Breadcrumb.vueindex 60e41115db..eeba93d93f 100644--- a/frontend/src/components/Breadcrumb.vue+++ b/frontend/src/components/Breadcrumb.vue@@ -175,8 +175,8 @@ export default defineComponent({});if (migrationHistory) {list.push({- name: t("common.migration"),- path: `/db/${databaseSlug}#migration-history`,+ name: t("common.change"),+ path: `/db/${databaseSlug}#change-history`,});}}diff --git a/frontend/src/components/DatabaseMigrationHistoryPanel.vue b/frontend/src/components/DatabaseMigrationHistoryPanel.vueindex 5d172fba04..83a2e080e6 100644--- a/frontend/src/components/DatabaseMigrationHistoryPanel.vue+++ b/frontend/src/components/DatabaseMigrationHistoryPanel.vue@@ -3,7 +3,7 @@<divclass="flex flex-row items-center text-lg leading-6 font-medium text-main space-x-2">- <span>{{ $t("migration-history.self") }}</span>+ <span>{{ $t("change-history.self") }}</span><BBTooltipButtonv-if="!isTenantProject && allowEdit"type="primary"@@ -12,13 +12,13 @@data-label="bb-establish-baseline-button"@click="state.showBaselineModal = true">- {{ $t("migration-history.establish-baseline") }}+ {{ $t("change-history.establish-baseline") }}<template v-if="isTenantProject" #tooltip><div class="w-52 whitespace-pre-wrap">{{$t("issue.not-allowed-to-single-database-in-tenant-mode", {operation: $t(- "migration-history.establish-baseline"+ "change-history.establish-baseline").toLowerCase(),})}}@@ -28,7 +28,7 @@<div><BBSpinv-if="state.loading"- :title="$t('migration-history.refreshing-history')"+ :title="$t('change-history.refreshing-history')"/></div></div>@@ -42,7 +42,7 @@:style="`WARN`":title="attentionTitle":action-text="- allowConfigInstance ? $t('migration-history.config-instance') : ''+ allowConfigInstance ? $t('change-history.config-instance') : ''"@click-action="configInstance"/>@@ -50,16 +50,16 @@<BBAlertv-if="state.showBaselineModal"- data-label="bb-migration-history-establish-baseline-alert"+ data-label="bb-change-history-establish-baseline-alert":style="'INFO'"- :ok-text="$t('migration-history.establish-baseline')"+ :ok-text="$t('change-history.establish-baseline')":cancel-text="$t('common.cancel')":title="- $t('migration-history.establish-database-baseline', {+ $t('change-history.establish-database-baseline', {name: database.name,})"- :description="$t('migration-history.establish-baseline-description')"+ :description="$t('change-history.establish-baseline-description')"@ok="doCreateBaseline"@cancel="state.showBaselineModal = false">@@ -171,21 +171,21 @@ export default defineComponent({const attentionTitle = computed((): string => {if (state.migrationSetupStatus == "NOT_EXIST") {return (- t("migration-history.instance-missing-migration-schema", {+ t("change-history.instance-missing-change-schema", {name: props.database.instance.name,}) +(allowConfigInstance.value? ""- : " " + t("migration-history.contact-dba"))+ : " " + t("change-history.contact-dba")));} else if (state.migrationSetupStatus == "UNKNOWN") {return (- t("migration-history.instance-bad-connection", {+ t("change-history.instance-bad-connection", {name: props.database.instance.name,}) +(allowConfigInstance.value? ""- : " " + t("migration-history.contact-dba"))+ : " " + t("change-history.contact-dba")));}return "";@@ -223,7 +223,7 @@ export default defineComponent({},query: {template: "bb.issue.database.schema.baseline",- name: t("migration-history.establish-database-baseline", {+ name: t("change-history.establish-database-baseline", {name: props.database.name,}),project: props.database.project.id,diff --git a/frontend/src/components/Issue/TaskRunTable.vue b/frontend/src/components/Issue/TaskRunTable.vueindex 4b9500b9c7..9ba5775e6a 100644--- a/frontend/src/components/Issue/TaskRunTable.vue+++ b/frontend/src/components/Issue/TaskRunTable.vue@@ -169,8 +169,8 @@ const commentLink = (task: Task, taskRun: TaskRun): CommentLink => {taskRun.code == MigrationErrorCode.MIGRATION_BASELINE_MISSING)) {return {- title: t("task.view-migration-history"),- link: `/db/${databaseSlug(task.database!)}#migration-history`,+ title: t("task.view-change-history"),+ link: `/db/${databaseSlug(task.database!)}#change-history`,};}}diff --git a/frontend/src/components/MigrationHistoryTable.vue b/frontend/src/components/MigrationHistoryTable.vueindex ed1e06dd3b..db682ae662 100644--- a/frontend/src/components/MigrationHistoryTable.vue+++ b/frontend/src/components/MigrationHistoryTable.vue@@ -6,7 +6,7 @@:show-header="true":left-bordered="true":right-bordered="true"- data-label="bb-migration-history-table"+ data-label="bb-change-history-table"@click-row="clickHistory"><template #header>@@ -132,7 +132,7 @@ export default defineComponent({title: "",},{- title: t("migration-history.workflow"),+ title: t("change-history.workflow"),},{title: t("common.version"),diff --git a/frontend/src/components/ProjectMigrationHistoryPanel.vue b/frontend/src/components/ProjectMigrationHistoryPanel.vueindex db7e6d932a..2cb471d89e 100644--- a/frontend/src/components/ProjectMigrationHistoryPanel.vue+++ b/frontend/src/components/ProjectMigrationHistoryPanel.vue@@ -2,7 +2,7 @@<div class="flex flex-col space-y-4"><template v-if="state.migrationHistorySectionList.length > 0"><div class="text-center textinfolabel">- {{ $t("migration-history.list-limit") }}+ {{ $t("change-history.list-limit") }}</div><MigrationHistoryTable:mode="'PROJECT'"@@ -15,10 +15,10 @@<div class="text-center"><heroicons-outline:inbox class="mx-auto w-16 h-16 text-control-light" /><h3 class="mt-2 text-sm font-medium text-main">- {{ $t("migration-history.no-history-in-project") }}+ {{ $t("change-history.no-history-in-project") }}</h3><p class="mt-1 text-sm text-control-light">- {{ $t("migration-history.recording-info") }}+ {{ $t("change-history.recording-info") }}</p></div></template>@@ -95,7 +95,7 @@ export default defineComponent({);const newItem = {title: title,- link: `${fullDatabasePath(database)}#migration-history`,+ link: `${fullDatabasePath(database)}#change-history`,list: migrationHistoryList,};if (index >= 0) {diff --git a/frontend/src/components/SyncDatabaseSchemaPrepForm.vue b/frontend/src/components/SyncDatabaseSchemaPrepForm.vueindex 734d549821..67e5697706 100644--- a/frontend/src/components/SyncDatabaseSchemaPrepForm.vue+++ b/frontend/src/components/SyncDatabaseSchemaPrepForm.vue@@ -64,7 +64,7 @@:item-list="databaseMigrationHistoryList(state.baseSchemaInfo.databaseId as DatabaseId)"- :placeholder="$t('migration-history.select')"+ :placeholder="$t('change-history.select')":show-prefix-item="true"@select-item="(migrationHistory: MigrationHistory) => handleSchemaVersionSelect(migrationHistory)">@@ -159,7 +159,7 @@:old-string="state.targetDatabaseInfo.currentSchema":new-string="state.baseSchemaInfo.migrationHistory?.schema ?? ''"output-format="side-by-side"- data-label="bb-migration-history-code-diff-block"+ data-label="bb-change-history-code-diff-block"/></template></div>diff --git a/frontend/src/components/TenantDatabaseTable/DatabaseMatrixItem.vue b/frontend/src/components/TenantDatabaseTable/DatabaseMatrixItem.vueindex d9325aa3ce..58963e528d 100644--- a/frontend/src/components/TenantDatabaseTable/DatabaseMatrixItem.vue+++ b/frontend/src/components/TenantDatabaseTable/DatabaseMatrixItem.vue@@ -112,7 +112,7 @@ export default defineComponent({});const schemaVersionUrl = computed((): string => {- return `/db/${databaseSlug(props.database)}#migration-history`;+ return `/db/${databaseSlug(props.database)}#change-history`;});return {diff --git a/frontend/src/layouts/ProjectLayout.vue b/frontend/src/layouts/ProjectLayout.vueindex 3b3d213190..c09dfff16a 100644--- a/frontend/src/layouts/ProjectLayout.vue+++ b/frontend/src/layouts/ProjectLayout.vue@@ -102,8 +102,8 @@ export default defineComponent({{ name: t("common.databases"), hash: "databases" },isTenantProject.value- ? null // Hide "Migration History" tab for tenant projects- : { name: t("common.migration-history"), hash: "migration-history" },+ ? null // Hide "Change History" tab for tenant projects+ : { name: t("common.change-history"), hash: "change-history" },{ name: t("common.activities"), hash: "activity" },{ name: t("common.version-control"), hash: "version-control" },diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex d737bfb64e..d63277ebeb 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -13,7 +13,7 @@"custom": "Custom","im": "IM","overview": "Overview",- "migration-history": "Migration History",+ "change-history": "Change History","webhook": "Webhook","webhooks": "Webhooks","key": "Key",@@ -266,7 +266,7 @@"started": "Started","ended": "Ended","view-migration": "View migration",- "view-migration-history": "View migration history",+ "view-change-history": "View change history","status": {"running": "Running","failed": "Failed",@@ -849,8 +849,8 @@"mark-env-as-protected": "Mark as protected environment"}},- "migration-history": {- "self": "Migration History",+ "change-history": {+ "self": "Change History","select": "Select version","workflow": "Workflow","commit-info": "by {author} at {time}",@@ -859,23 +859,23 @@"schema-drift-detected": "A schema drift was detected.","view-drift": "View drift","before-left-schema-choice": "Compare the schema",- "left-schema-choice-prev-history-schema": "after prev migration",- "left-schema-choice-current-history-schema-prev": "before this migration",- "after-left-schema-choice": "and after this migration",+ "left-schema-choice-prev-history-schema": "after prev change",+ "left-schema-choice-current-history-schema-prev": "before this change",+ "after-left-schema-choice": "and after this change","show-diff": "Show diff","left-vs-right": "Prev {prevLink} vs This version",- "schema-snapshot-after-migration": "The schema snapshot recorded after applying this migration",+ "schema-snapshot-after-change": "The schema snapshot recorded after applying this change","current-schema-empty": "Current schema is empty",- "list-limit": "For database having migration history, we list up to 5 most recent histories below. You can click the database name to view all histories.",- "no-history-in-project": "Do not find migration history from any database in this project.",- "recording-info": "Migration history is recorded whenever the database schema is altered.",+ "list-limit": "For database having change history, we list up to 5 most recent histories below. You can click the database name to view all histories.",+ "no-history-in-project": "Do not find change history from any database in this project.",+ "recording-info": "Change history is recorded whenever the database schema is altered.","establish-baseline": "Establish new baseline","refreshing-history": "Refreshing history ...","config-instance": "Config instance","establish-baseline-description": "Bytebase will use the current schema as the new baseline. This would reconcile the actual schema state with the recorded schema state in Bytebase and fix the reported schema drift. You should only do this if the current schema does reflect the desired state.","establish-database-baseline": "Establish \"{name}\" baseline",- "instance-missing-migration-schema": "Missing migration history schema on instance \"{name}\".",- "instance-bad-connection": "Unable to connect instance \"{name}\" to retrieve migration history.",+ "instance-missing-change-schema": "Missing change history schema on instance \"{name}\".",+ "instance-bad-connection": "Unable to connect instance \"{name}\" to retrieve change history.","contact-dba": "Please contact your DBA to config it"},"database": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 3466154b5d..28542aa286 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -13,7 +13,7 @@"custom": "自定义","im": "IM","overview": "概览",- "migration-history": "变更历史",+ "change-history": "变更历史","webhook": "Webhook","webhooks": "Webhook","key": "键值",@@ -265,7 +265,7 @@"started": "开始于","ended": "结束于","view-migration": "查看变更",- "view-migration-history": "查看变更历史",+ "view-change-history": "查看变更历史","earliest-allowed-time-unset": "未设置","status": {"running": "运行中",@@ -849,7 +849,7 @@"mark-env-as-protected": "标记为受保护的环境"}},- "migration-history": {+ "change-history": {"self": "变更历史","select": "选择版本","workflow": "工作流",@@ -864,7 +864,7 @@"after-left-schema-choice": "和本次变更后的 Schema","show-diff": "显示差异","left-vs-right": "之前{prevLink} vs 当前版本",- "schema-snapshot-after-migration": "完成这次变更后的 schema 快照",+ "schema-snapshot-after-change": "完成这次变更后的 schema 快照","current-schema-empty": "当前 schema 为空","list-limit": "对于有变更历史的数据库,我们会在下面最多列出5条记录。您可以点击数据库名称去进一步查看全部的记录。","no-history-in-project": "这个项目下没有发现任何数据库有变更历史。",@@ -874,7 +874,7 @@"config-instance": "配置实例","establish-baseline-description": "Bytebase 将用当前的 schema 作为新的基线。这将会把数据库当前的 schema 状态同步到 Bytebase 记录的 schema 状态,并且解决 schema 偏差的问题。在进行此操作前,您应该检查当前的基线确实反映了期望的状态。","establish-database-baseline": "建立「{name}」基线",- "instance-missing-migration-schema": "实例「{name}」缺失用于记录变更历史的 schema。",+ "instance-missing-change-schema": "实例「{name}」缺失用于记录变更历史的 schema。","instance-bad-connection": "无法连接实例「{name}」以获取变更历史。","contact-dba": "请联系您的 DBA 进行配置。"},diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vueindex 2a5448ebc7..68f59f7581 100644--- a/frontend/src/views/DatabaseDetail.vue+++ b/frontend/src/views/DatabaseDetail.vue@@ -387,7 +387,7 @@ const ghostDialog = ref<InstanceType<typeof GhostDialog>>();const databaseTabItemList: DatabaseTabItem[] = [{ name: t("common.overview"), hash: "overview" },- { name: t("migration-history.self"), hash: "migration-history" },+ { name: t("change-history.self"), hash: "change-history" },{ name: t("common.backup-and-restore"), hash: "backup-and-restore" },];diff --git a/frontend/src/views/MigrationHistoryDetail.vue b/frontend/src/views/MigrationHistoryDetail.vueindex d8bc6bf952..5845ab96dd 100644--- a/frontend/src/views/MigrationHistoryDetail.vue+++ b/frontend/src/views/MigrationHistoryDetail.vue@@ -75,7 +75,7 @@{{ pushEvent.fileCommit.id.substring(0, 7) }}:</a><span class="text-main">{{ pushEvent.fileCommit.title }}</span>- <i18n-t keypath="migration-history.commit-info">+ <i18n-t keypath="change-history.commit-info"><template #author>{{ pushEvent.authorName }}</template>@@ -129,30 +129,30 @@<heroicons-outline:exclamation-circleclass="w-5 h-5 mr-0.5 text-error"/>- <span>{{ $t("migration-history.schema-drift-detected") }}</span>+ <span>{{ $t("change-history.schema-drift-detected") }}</span></div><divclass="normal-link text-sm"- data-label="bb-migration-history-view-drift-button"+ data-label="bb-change-history-view-drift-button"@click="state.viewDrift = true">- {{ $t("migration-history.view-drift") }}+ {{ $t("change-history.view-drift") }}</div></div><div class="flex flex-row items-center space-x-2 mt-2"><BBSwitchv-if="allowShowDiff"- :label="$t('migration-history.show-diff')"+ :label="$t('change-history.show-diff')":value="state.showDiff"- data-label="bb-migration-history-diff-switch"+ data-label="bb-change-history-diff-switch"@toggle="state.showDiff = $event"/><div class="textinfolabel"><i18n-tv-if="state.showDiff"tag="span"- keypath="migration-history.left-vs-right"+ keypath="change-history.left-vs-right"><template #prevLink><router-link@@ -165,11 +165,11 @@</template></i18n-t><template v-else>- {{ $t("migration-history.schema-snapshot-after-migration") }}+ {{ $t("change-history.schema-snapshot-after-change") }}</template></div><div v-if="!allowShowDiff" class="text-sm font-normal text-accent">- ({{ $t("migration-history.no-schema-change") }})+ ({{ $t("change-history.no-schema-change") }})</div></div>@@ -179,17 +179,17 @@:old-string="migrationHistory.schemaPrev":new-string="migrationHistory.schema"output-format="side-by-side"- data-label="bb-migration-history-code-diff-block"+ data-label="bb-change-history-code-diff-block"/><template v-else><highlight-code-blockv-if="migrationHistory.schema"class="border mt-2 px-2 whitespace-pre-wrap w-full":code="migrationHistory.schema"- data-label="bb-migration-history-code-block"+ data-label="bb-change-history-code-block"/><div v-else class="mt-2">- {{ $t("migration-history.current-schema-empty") }}+ {{ $t("change-history.current-schema-empty") }}</div></template></div>@@ -200,9 +200,9 @@@close="state.viewDrift = false"><template #title>- <span>{{ $t("migration-history.schema-drift") }}</span>+ <span>{{ $t("change-history.schema-drift") }}</span><span class="mx-2">-</span>- <i18n-t tag="span" keypath="migration-history.left-vs-right">+ <i18n-t tag="span" keypath="change-history.left-vs-right"><template #prevLink><router-link class="normal-link" :to="previousHistoryLink">({{ previousHistory.version }})diff --git a/frontend/src/views/ProjectDetail.vue b/frontend/src/views/ProjectDetail.vueindex 9ac4b1adef..7b0f7ddd96 100644--- a/frontend/src/views/ProjectDetail.vue+++ b/frontend/src/views/ProjectDetail.vue@@ -20,9 +20,9 @@:database-list="databaseList"/></template>- <template v-if="hash === 'migration-history'">+ <template v-if="hash === 'change-history'"><ProjectMigrationHistoryPanel- id="migration-history"+ id="change-history":project="project":database-list="databaseList"/>