Skip to content

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

chore: change Alter Schema to Edit Schema (#8037)

Danny Xud1be2b02b121
diff --git a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
index 7835744004..6962c4e35e 100644
--- a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
@@ -4,7 +4,7 @@
<div class="flex flex-col gap-y-1">
<span>{{
isAlterSchema
- ? $t("database.alter-schema")
+ ? $t("database.edit-schema")
: $t("database.change-data")
}}</span>
<i18n-t
diff --git a/frontend/src/components/AlterSchemaPrepForm/DatabaseGroupPrevEditorModal.vue b/frontend/src/components/AlterSchemaPrepForm/DatabaseGroupPrevEditorModal.vue
index 81844533aa..fb445eb560 100644
--- a/frontend/src/components/AlterSchemaPrepForm/DatabaseGroupPrevEditorModal.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/DatabaseGroupPrevEditorModal.vue
@@ -124,7 +124,7 @@ const allowPreviewIssue = computed(() => {
const title = computed(() => {
if (props.issueType === "bb.issue.database.schema.update") {
- return t("database.alter-schema");
+ return t("database.edit-schema");
} else {
return t("database.change-data");
}
diff --git a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
index d484697e20..7c37c8e2a2 100644
--- a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
@@ -1,6 +1,6 @@
<template>
<BBModal
- :title="$t('database.alter-schema')"
+ :title="$t('database.edit-schema')"
:trap-focus="false"
class="schema-editor-modal-container !w-[96rem] h-auto overflow-auto !max-w-[calc(100%-40px)] !max-h-[calc(100%-40px)]"
@close="dismissModal"
diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vue
index acd985e571..ffae3e8474 100644
--- a/frontend/src/components/QuickActionPanel.vue
+++ b/frontend/src/components/QuickActionPanel.vue
@@ -48,7 +48,7 @@
<h3
class="flex-1 mt-1.5 text-center text-sm font-normal text-main tracking-tight"
>
- {{ $t("database.alter-schema") }}
+ {{ $t("database.edit-schema") }}
</h3>
</div>
@@ -434,7 +434,7 @@ const QuickActionMap: Record<string, Partial<Action>> = {
perform: () => createDatabase(),
},
"quickaction.bb.database.schema.update": {
- name: t("database.alter-schema"),
+ name: t("database.edit-schema"),
perform: () => alterSchema(),
},
"quickaction.bb.environment.create": {
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 881abe0653..b037a86898 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -990,7 +990,7 @@
"create-migration-schema": "Create migration schema",
"missing-migration-schema": "Missing migration schema",
"unable-to-connect-instance-to-check-migration-schema": "Unable to connect instance to check migration schema",
- "bytebase-relies-on-migration-schema-to-manage-gitops-based-schema-migration-for-databases-belonged-to-this-instance": "Bytebase relies on migration schema to record database schema migration on this instance. Without setting up the migration schema, you cannot alter schema or change data for any databases on the instance.",
+ "bytebase-relies-on-migration-schema-to-manage-gitops-based-schema-migration-for-databases-belonged-to-this-instance": "Bytebase relies on migration schema to record database schema migration on this instance. Without setting up the migration schema, you cannot edit schema or change data for any databases on the instance.",
"please-contact-your-dba-to-configure-it": "Please contact your DBA to configure it.",
"please-check-the-instance-connection-info-is-correct": "Please check the instance connection info is correct.",
"users": "Users",
@@ -1253,8 +1253,8 @@
"search-database": "Search database",
"database-backup": "database backup",
"transfer-project": "Transfer Project",
- "alter-schema": "Alter Schema",
- "alter-schema-in-vcs": "Alter Schema in VCS",
+ "edit-schema": "Edit Schema",
+ "edit-schema-in-vcs": "Edit Schema in VCS",
"change-data": "Change Data",
"change-data-in-vcs": "Change Data in VCS",
"branch": "Branch",
@@ -1410,7 +1410,7 @@
"should-follow-database-name-template": "Should follow tenant database name template",
"all": "All databases",
"unassigned": "Unassigned",
- "show-schemaless-databases": "Show schemaless databases. (Alter Schema is not applicable for schemaless databases.)",
+ "show-schemaless-databases": "Show schemaless databases. (Edit Schema is not applicable for schemaless databases.)",
"secret": {
"self": "Secret",
"new": "New secret",
@@ -1902,7 +1902,7 @@
"table-schema-placeholder": "Select a table to see its schema",
"notify-empty-statement": "Please input your SQL statements in the editor",
"notify-multiple-statements": "Multiple SQL statements detected. SQL Editor only executes the first statement. You can select another statement and execute it individually.",
- "goto-alter-schema-hint": "Please select a database connection from the top of the editor",
+ "goto-edit-schema-hint": "Please select a database connection from the top of the editor",
"notify-invalid-sql-statement": "Invalid SQL statement.",
"can-not-execute-query": "Cannot execute query when loading data.",
"rows": "row | rows",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 035ce97f26..e651cff7ef 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1252,8 +1252,8 @@
"search-database": "Buscar base de datos",
"database-backup": "copia de seguridad de la base de datos",
"transfer-project": "Transferir proyecto",
- "alter-schema": "Modificar esquema",
- "alter-schema-in-vcs": "Modificar esquema en VCS",
+ "edit-schema": "Modificar esquema",
+ "edit-schema-in-vcs": "Modificar esquema en VCS",
"change-data": "Cambiar datos",
"change-data-in-vcs": "Cambiar datos en VCS",
"branch": "Rama",
@@ -1409,7 +1409,7 @@
"should-follow-database-name-template": "Debe seguir la plantilla de nombre de base de datos de inquilino",
"all": "Todas las bases de datos",
"unassigned": "No asignado",
- "show-schemaless-databases": "Mostrar bases de datos sin esquema. (Alter Schema no se aplica a las bases de datos sin esquema.)",
+ "show-schemaless-databases": "Mostrar bases de datos sin esquema. (Editar Schema no se aplica a las bases de datos sin esquema.)",
"secret": {
"self": "Secreto",
"new": "Nuevo secreto",
@@ -1898,7 +1898,7 @@
"table-schema-placeholder": "Seleccione una tabla para ver su esquema",
"notify-empty-statement": "Ingrese sus declaraciones SQL en el editor",
"notify-multiple-statements": "Se detectaron múltiples declaraciones SQL. El Editor de SQL solo ejecuta la primera declaración. Puede seleccionar otra declaración y ejecutarla individualmente.",
- "goto-alter-schema-hint": "Seleccione una conexión de base de datos desde la parte superior del editor",
+ "goto-edit-schema-hint": "Seleccione una conexión de base de datos desde la parte superior del editor",
"notify-invalid-sql-statement": "Declaración SQL inválida.",
"can-not-execute-query": "No se puede ejecutar la consulta al cargar datos.",
"rows": "fila | filas",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index d333e585f5..09d3ebdcb7 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1249,8 +1249,8 @@
"search-database-name": "搜索数据库名称",
"search-database": "搜索数据库",
"transfer-project": "转移项目",
- "alter-schema": "变更 Schema",
- "alter-schema-in-vcs": "变更 Schema (VCS)",
+ "edit-schema": "变更 Schema",
+ "edit-schema-in-vcs": "变更 Schema (VCS)",
"change-data": "变更数据",
"change-data-in-vcs": "变更数据 (VCS)",
"branch": "分支",
@@ -1898,7 +1898,7 @@
"notify-empty-statement": "请在编辑器中输入 SQL 语句",
"notify-multiple-statements": "检测到您输入了多条 SQL 语句。SQL 编辑器只支持执行第一条语句。您可以选择其他语句单独执行。",
"notify-invalid-sql-statement": "请检查您的 SQL 语句。",
- "goto-alter-schema-hint": "请从编辑器顶部选择一个数据库连接",
+ "goto-edit-schema-hint": "请从编辑器顶部选择一个数据库连接",
"can-not-execute-query": "加载数据时无法执行查询",
"rows": "条记录",
"no-history-found": "暂无历史记录",
diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vue
index 6cacb1a45b..7133619014 100644
--- a/frontend/src/views/DatabaseDetail.vue
+++ b/frontend/src/views/DatabaseDetail.vue
@@ -134,7 +134,7 @@
class="btn-normal"
@click="createMigration('bb.issue.database.schema.update')"
>
- <span>{{ $t("database.alter-schema") }}</span>
+ <span>{{ $t("database.edit-schema") }}</span>
</button>
</div>
</div>
diff --git a/frontend/src/views/DatabaseGroupDetail.vue b/frontend/src/views/DatabaseGroupDetail.vue
index e73b41d677..de9c8047ab 100644
--- a/frontend/src/views/DatabaseGroupDetail.vue
+++ b/frontend/src/views/DatabaseGroupDetail.vue
@@ -57,7 +57,7 @@
}}</NButton>
<NButton
@click="createMigration('bb.issue.database.schema.update')"
- >{{ $t("database.alter-schema") }}</NButton
+ >{{ $t("database.edit-schema") }}</NButton
>
<NButton @click="createMigration('bb.issue.database.data.update')">{{
$t("database.change-data")
diff --git a/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue b/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue
index f511fbf539..3a54b91109 100644
--- a/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue
@@ -101,7 +101,7 @@ const props = defineProps<{
const emit = defineEmits<{
(
- event: "alter-schema",
+ event: "edit-schema",
params: { databaseId: DatabaseId; schema: string; table: string }
): void;
(event: "update:search-pattern", keyword: string): void;
@@ -163,8 +163,8 @@ const dropdownOptions = computed((): DropdownOptionWithConnectionAtom[] => {
const database = databaseStore.getDatabaseByUID(atom.id);
if (instanceV1HasAlterSchema(database.instanceEntity)) {
items.push({
- key: "alter-schema",
- label: t("database.alter-schema"),
+ key: "edit-schema",
+ label: t("database.edit-schema"),
item: atom,
});
}
@@ -272,8 +272,8 @@ const handleSelect = (key: string) => {
return;
}
- if (key === "alter-schema") {
- emit("alter-schema", {
+ if (key === "edit-schema") {
+ emit("edit-schema", {
databaseId: option.item.id,
schema: "",
table: "",
diff --git a/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue b/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
index 8552b05447..1121ad4e3a 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
@@ -14,7 +14,7 @@
<template #want>
{{
isDDL
- ? $t("database.alter-schema").toLowerCase()
+ ? $t("database.edit-schema").toLowerCase()
: $t("database.change-data").toLowerCase()
}}
</template>
@@ -23,7 +23,7 @@
{{
sqlEditorStore.mode === "BUNDLED"
? isDDL
- ? $t("database.alter-schema")
+ ? $t("database.edit-schema")
: $t("database.change-data")
: $t("sql-editor.admin-mode.self")
}}
@@ -55,7 +55,7 @@
type="primary"
@click="gotoAlterSchema"
>
- {{ isDDL ? $t("database.alter-schema") : $t("database.change-data") }}
+ {{ isDDL ? $t("database.edit-schema") : $t("database.change-data") }}
</NButton>
<AdminModeButton v-else @enter="$emit('close')" />
</div>
@@ -108,7 +108,7 @@ const gotoAlterSchema = () => {
pushNotification({
module: "bytebase",
style: "CRITICAL",
- title: t("sql-editor.goto-alter-schema-hint"),
+ title: t("sql-editor.goto-edit-schema-hint"),
});
return;
}
diff --git a/frontend/src/views/sql-editor/SecondarySidebar/InfoTabPane/SchemaPanel/AlterSchemaButton.vue b/frontend/src/views/sql-editor/SecondarySidebar/InfoTabPane/SchemaPanel/AlterSchemaButton.vue
index 19a7583fcf..8f0d0f678a 100644
--- a/frontend/src/views/sql-editor/SecondarySidebar/InfoTabPane/SchemaPanel/AlterSchemaButton.vue
+++ b/frontend/src/views/sql-editor/SecondarySidebar/InfoTabPane/SchemaPanel/AlterSchemaButton.vue
@@ -11,7 +11,7 @@
<heroicons-outline:pencil-alt class="w-4 h-4" />
</NButton>
</template>
- {{ $t("database.alter-schema") }}
+ {{ $t("database.edit-schema") }}
</NTooltip>
</template>