Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: add hint for changing SQL in tenant mode (#3290)
boojack9b787c1ec264
diff --git a/frontend/src/components/Issue/IssueDetailLayout.vue b/frontend/src/components/Issue/IssueDetailLayout.vueindex dc9511f16e..e5eb90d44e 100644--- a/frontend/src/components/Issue/IssueDetailLayout.vue+++ b/frontend/src/components/Issue/IssueDetailLayout.vue@@ -102,6 +102,7 @@<script lang="ts" setup>import { computed, onMounted, PropType, ref, watch, watchEffect } from "vue";+import { useI18n } from "vue-i18n";import { useRoute } from "vue-router";import {pipelineType,@@ -164,6 +165,8 @@ const emit = defineEmits<{(e: "status-changed", eager: boolean): void;}>();+const { t } = useI18n();+const route = useRoute();const taskStore = useTaskStore();@@ -275,10 +278,13 @@ const instance = computed((): Instance => {const sqlHint = (): string | undefined => {if (selectedMigrateType.value == "BASELINE") {- return `This is a baseline migration and Bytebase won't apply the SQL to the database, it will only record a baseline history`;+ return t("issue.sql-hint.dont-apply-to-database-in-baseline-migration");}if (instance.value.engine === "SNOWFLAKE") {- return `Use <<schema>>.<<table>> to specify a Snowflake table`;+ return t("issue.sql-hint.snowflake");+ }+ if (isTenantMode.value) {+ return t("issue.sql-hint.change-will-apply-to-all-tasks-in-tenant-mode");}return undefined;};diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 848d388f7d..fe74db8be8 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -529,6 +529,11 @@"reopened": "reopened","action-n-issues": "{action} {n} issue | {action} {n} issues","successfully-updated-n-issues": "Successfully updated {n} issue | Successfully updated {n} issues"+ },+ "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",+ "snowflake": "Use <<schema>>.<<table>> to specify a Snowflake table"}},"alter-schema": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex b03eb3c5f9..67cd8f6a08 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -529,6 +529,11 @@"reopened": "重开","action-n-issues": "{action} {n} 个工单","successfully-action-n-issues": "成功更新 {n} 个工单"+ },+ "sql-hint": {+ "change-will-apply-to-all-tasks-in-tenant-mode": "改动将会应用到其他所有任务",+ "dont-apply-to-database-in-baseline-migration": "对于建立基线的迁移,Bytebase 不会应用到数据库,只会记录一个基线历史",+ "snowflake": "使用 <<schema>>.<<table>> 来标注一个 SnowFlake 的表"}},"alter-schema": {