Abeautifulsnow
310cc22b37
Fix/disable table comment for unsupported db (#518)
* fix(structure-editor): disable table comment input for databases that don't support comments (e.g. SQLite)
## 背景说明
SQLite 不支持表注释(COMMENT),但表注释输入框始终可编辑。用户修改注释后,SQL 预览显示暂无变更且应用变更按钮不可用,造成困惑的 UX。
## 修改内容
- 新增 isTableCommentDisabled 计算属性,基于 structureCapabilities.comment 控制禁用状态
- 表注释 Input 添加 :disabled 绑定,禁用时输入框变灰不可编辑
- 禁用时在输入框右侧显示 Info 图标,hover 显示 Tooltip 说明
- 三语言(zh-CN / en / es)新增 tableCommentUnsupported 翻译
## 影响范围
- SQLite、DuckDB 及未知数据库类型:输入框被禁用 + Tooltip 提示
- MySQL、PostgreSQL、ClickHouse 等支持注释的数据库:完全不受影响
- 后端 generate_comment_ddl 已有对等过滤(仅 Postgres/Oracle/ClickHouse 生成 COMMENT SQL)
## 测试
- 建议补充:dbType 为 sqlite 时 isTableCommentDisabled 为 true 的单元测试
* test(structure-editor): add tests for table comment disabled state and unsupported DB capabilities
2026-05-29 12:29:50 +08:00
..
2026-05-18 02:35:39 +08:00
2026-05-23 08:35:45 +08:00
2026-05-18 21:48:46 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-22 21:18:32 +08:00
2026-05-22 01:09:40 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-19 15:56:34 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-21 17:47:48 +08:00
2026-05-22 10:42:28 +08:00
2026-05-22 00:41:49 +08:00
2026-05-26 20:12:41 +08:00
2026-05-28 18:31:57 +08:00
2026-05-18 12:27:44 +08:00
2026-05-18 02:35:39 +08:00
2026-05-19 13:51:38 +08:00
2026-05-19 14:12:14 +08:00
2026-05-18 02:35:39 +08:00
2026-05-20 16:10:14 +08:00
2026-05-21 18:57:50 +08:00
2026-05-19 16:34:08 +08:00
2026-05-23 16:04:33 +08:00
2026-05-28 00:08:59 +08:00
2026-05-21 00:32:19 +08:00
2026-05-27 13:54:32 +08:00
2026-05-21 22:49:32 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-25 17:23:36 +08:00
2026-05-22 14:28:40 +08:00
2026-05-18 19:23:55 +08:00
2026-05-26 17:32:05 +08:00
2026-05-21 18:57:50 +08:00
2026-05-23 01:28:52 +08:00
2026-05-22 14:56:40 +08:00
2026-05-22 14:52:12 +08:00
2026-05-23 01:28:52 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 22:38:04 +08:00
2026-05-18 02:35:39 +08:00
2026-05-23 01:28:52 +08:00
2026-05-23 01:28:52 +08:00
2026-05-27 02:33:21 +08:00
2026-05-28 01:05:15 +08:00
2026-05-23 01:28:52 +08:00
2026-05-21 22:26:10 +08:00
2026-05-20 09:43:40 +08:00
2026-05-18 02:35:39 +08:00
2026-05-23 01:28:52 +08:00
2026-05-25 11:57:36 +08:00
2026-05-25 11:57:36 +08:00
2026-05-23 12:44:49 +08:00
2026-05-23 01:28:52 +08:00
2026-05-18 17:46:42 +08:00
2026-05-18 02:35:39 +08:00
2026-05-20 17:01:37 +08:00
2026-05-28 20:09:35 +08:00
2026-05-23 01:28:52 +08:00
2026-05-19 16:39:19 +08:00
2026-05-22 17:16:36 +08:00
2026-05-22 12:04:11 +08:00
2026-05-26 18:26:31 +08:00
2026-05-23 08:58:18 +08:00
2026-05-23 01:28:52 +08:00
2026-05-18 02:35:39 +08:00
2026-05-28 19:21:43 +08:00
2026-05-28 19:21:43 +08:00
2026-05-28 17:43:06 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-24 22:52:58 +08:00
2026-05-18 16:52:09 +08:00
2026-05-18 10:43:47 +08:00
2026-05-23 12:58:23 +08:00
2026-05-18 17:46:59 +08:00
2026-05-18 23:49:45 +08:00
2026-05-27 18:26:22 +08:00
2026-05-21 12:40:10 +08:00
2026-05-22 00:41:49 +08:00
2026-05-21 00:08:47 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-23 01:28:52 +08:00
2026-05-18 02:35:39 +08:00
2026-05-23 01:28:52 +08:00
2026-05-18 02:35:39 +08:00
2026-05-28 20:09:35 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 12:49:24 +08:00
2026-05-18 21:48:46 +08:00
2026-05-28 17:43:06 +08:00
2026-05-27 10:43:20 +08:00
2026-05-19 11:51:39 +08:00
2026-05-28 21:29:08 +08:00
2026-05-24 22:52:58 +08:00
2026-05-22 11:37:23 +08:00
2026-05-23 01:28:52 +08:00
2026-05-23 01:28:52 +08:00
2026-05-23 01:28:52 +08:00
2026-05-18 02:35:39 +08:00
2026-05-21 18:42:39 +08:00
2026-05-28 18:18:45 +08:00
2026-05-18 02:35:39 +08:00
2026-05-22 14:28:40 +08:00
2026-05-23 09:25:53 +08:00
2026-05-28 22:09:54 +08:00
2026-05-29 01:17:46 +08:00
2026-05-25 11:28:02 +08:00
2026-05-18 02:35:39 +08:00
2026-05-22 16:29:22 +08:00
2026-05-25 16:51:18 +08:00
2026-05-28 18:54:51 +08:00
2026-05-18 02:35:39 +08:00
2026-05-20 18:54:18 +08:00
2026-05-22 14:02:13 +08:00
2026-05-26 18:44:00 +08:00
2026-05-18 02:35:39 +08:00
2026-05-28 17:51:36 +08:00
2026-05-22 10:58:30 +08:00
2026-05-28 00:08:59 +08:00
2026-05-20 18:54:18 +08:00
2026-05-18 02:35:39 +08:00
2026-05-21 12:02:29 +08:00
2026-05-22 16:20:11 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 23:58:38 +08:00
2026-05-22 21:04:19 +08:00
2026-05-28 20:36:56 +08:00
2026-05-28 17:43:06 +08:00
2026-05-23 01:35:53 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 22:17:45 +08:00
2026-05-18 19:18:20 +08:00
2026-05-18 19:18:20 +08:00
2026-05-26 11:57:12 +08:00
2026-05-21 23:32:07 +08:00
2026-05-21 22:38:18 +08:00
2026-05-21 22:56:42 +08:00
2026-05-21 22:56:42 +08:00
2026-05-18 02:35:39 +08:00
2026-05-27 10:43:20 +08:00
2026-05-27 18:26:22 +08:00
2026-05-18 02:35:39 +08:00
2026-05-22 15:09:31 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-18 02:35:39 +08:00
2026-05-22 14:22:58 +08:00
2026-05-27 23:07:47 +08:00
2026-05-18 02:35:39 +08:00
2026-05-24 10:30:58 +08:00
2026-05-29 01:17:46 +08:00
2026-05-18 10:43:40 +08:00
2026-05-18 02:35:39 +08:00
2026-05-23 01:28:52 +08:00
2026-05-21 01:34:45 +08:00
2026-05-18 02:35:39 +08:00
2026-05-23 01:28:52 +08:00
2026-05-29 12:29:50 +08:00
2026-05-29 12:29:50 +08:00
2026-05-29 00:41:51 +08:00
2026-05-24 22:52:58 +08:00
2026-05-23 13:08:19 +08:00
2026-05-18 02:35:39 +08:00
2026-05-22 15:41:33 +08:00
2026-05-28 16:11:29 +08:00
2026-05-22 18:04:49 +08:00
2026-05-19 15:07:25 +08:00
2026-05-18 02:35:39 +08:00
2026-05-23 01:32:51 +08:00
2026-05-18 02:35:39 +08:00
2026-05-23 01:28:52 +08:00
2026-05-26 12:06:48 +08:00
2026-05-21 11:40:05 +08:00
2026-05-23 08:35:45 +08:00
2026-05-21 10:42:03 +08:00
2026-05-25 16:52:43 +08:00
2026-05-22 14:56:40 +08:00
2026-05-18 02:35:39 +08:00