+
diff --git a/apps/desktop/src/components/diff/__tests__/SchemaDiffOptionsPanel.spec.ts b/apps/desktop/src/components/diff/__tests__/SchemaDiffOptionsPanel.spec.ts
index 3edcdc5131..f0163f5759 100644
--- a/apps/desktop/src/components/diff/__tests__/SchemaDiffOptionsPanel.spec.ts
+++ b/apps/desktop/src/components/diff/__tests__/SchemaDiffOptionsPanel.spec.ts
@@ -67,6 +67,24 @@ describe("SchemaDiffOptionsPanel", () => {
expect(normalizeSchemaDiffCompareOptions({}, "mysql").compareCharset).toBe(true);
});
+ it("groups MySQL charset comparison with table structure options", async () => {
+ const host = document.createElement("div");
+ document.body.append(host);
+
+ const app = createApp(SchemaDiffOptionsPanel, {
+ options: normalizeSchemaDiffCompareOptions({}, "mysql"),
+ optionTree: getSchemaDiffOptionsForDbType("mysql"),
+ });
+ mountedApps.push(app);
+ app.mount(host);
+ await nextTick();
+
+ const tableStructure = host.querySelector('[data-section="table-structure"]');
+ const behavior = host.querySelector('[data-section="compare-behavior"]');
+ expect(tableStructure?.textContent).toContain("schemaDiff.options.compareCharset");
+ expect(behavior?.textContent).not.toContain("schemaDiff.options.compareCharset");
+ });
+
it("keeps unsaved checkbox edits when the parent refreshes equivalent options", async () => {
const options = ref({ ...DEFAULT_POSTGRES_OPTIONS });
const optionTree: SchemaDiffOptionItem[] = [{ id: "views", labelKey: "views", defaultChecked: true }];
diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.ts
index b8c8935456..b59c01aabf 100644
--- a/apps/desktop/src/i18n/locales/en.ts
+++ b/apps/desktop/src/i18n/locales/en.ts
@@ -7423,7 +7423,7 @@ export default {
selectedCount: "{selected} selected of {total}",
saveConfig: "Save config",
loadConfig: "Load config",
- options: "Options",
+ options: "Compare options",
ddlCompare: "DDL compare",
deployScript: "Deploy script",
deployScriptAll: "All deploy scripts",
@@ -7582,6 +7582,9 @@ export default {
tableFilterPriorityExclude: "Exclude wins",
tableFilterPriorityInclude: "Include wins",
options: {
+ objectScopeSection: "Object scope",
+ tableStructureSection: "Table structure",
+ behaviorSection: "Comparison behavior",
tables: "Compare tables",
primaryKeys: "Compare primary keys",
foreignKeys: "Compare foreign keys",
diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.ts
index a202007129..3cb961b620 100644
--- a/apps/desktop/src/i18n/locales/zh-CN.ts
+++ b/apps/desktop/src/i18n/locales/zh-CN.ts
@@ -7323,7 +7323,7 @@ export default withEnglishFallback({
selectedCount: "已选择 {selected} 个 (共 {total} 个)",
saveConfig: "保存配置",
loadConfig: "加载配置",
- options: "选项",
+ options: "比较选项",
ddlCompare: "DDL 比较",
deployScript: "部署脚本",
deployScriptDesc: "所选对象的 SQL 脚本",
@@ -7548,6 +7548,9 @@ export default withEnglishFallback({
tableFilterPriorityExclude: "排除优先",
tableFilterPriorityInclude: "包含优先",
options: {
+ objectScopeSection: "对象范围",
+ tableStructureSection: "表结构",
+ behaviorSection: "比较行为",
tables: "比较表",
primaryKeys: "比较主键",
foreignKeys: "比较外键",