feat(sync): 扩展跨库迁移自动建表能力

- 新增 MySQL、PG-like、ClickHouse、MongoDB 同类库迁移规划器
- 支持可映射库对自动建表、补字段及兼容索引迁移
- 修复 MongoDB 创建集合时建表 SQL 为空的执行判断
- 避免 PG-like 主键索引重复迁移并保留默认值表达式
- 更新 Data Sync 自动建表能力提示与回归测试
Refs #465
This commit is contained in:
Syngnat
2026-05-15 20:33:42 +08:00
parent f2c8122c46
commit b9f9a8fca2
10 changed files with 1126 additions and 9 deletions

View File

@@ -975,7 +975,7 @@ const DataSyncModal: React.FC<{ open: boolean; onClose: () => void }> = ({ open,
)}
<Form.Item>
<Checkbox checked={autoAddColumns} onChange={(e) => setAutoAddColumns(e.target.checked)} disabled={isSourceQueryMode}>
MySQL MySQL KingbaseSQL
/SQL
</Checkbox>
</Form.Item>
<Form.Item>
@@ -987,7 +987,7 @@ const DataSyncModal: React.FC<{ open: boolean; onClose: () => void }> = ({ open,
<Alert
type="info"
showIcon
message="自动建表模式首期仅支持 MySQL → Kingbase将迁移字段、主键、普通/唯一/联合索引,并显式跳过全文、空间、前缀、函数类索引。"
message="自动建表模式会按源/目标数据模型选择可用规划器;当前覆盖 MySQL/PG-like/ClickHouse/TDengine/MongoDB 的可映射库对,不兼容索引和表级语义会显式提示或跳过。"
style={{ marginBottom: 12 }}
/>
)}