Skip to content

Fix:修复 PostgreSQL 联合外键导出被拆分的问题#2091

Open
zipg wants to merge 1 commit into
t8y2:mainfrom
zipg:codex/fix-postgres-composite-fk-ddl
Open

Fix:修复 PostgreSQL 联合外键导出被拆分的问题#2091
zipg wants to merge 1 commit into
t8y2:mainfrom
zipg:codex/fix-postgres-composite-fk-ddl

Conversation

@zipg

@zipg zipg commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

修复内容

  • PostgreSQL 表 DDL 渲染时按外键约束名聚合字段,避免联合外键被导出成多个单列外键
  • 增加联合外键 DDL 渲染回归测试

Fixes #2085

验证

  • cargo fmt --check
  • cargo test -p dbx-core postgres_table_ddl_keeps_composite_foreign_key_together

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PostgreSQL 导出表时联合外键被错误拆分为多个单列外键

1 participant