mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
* Propagate column renames to FK and unique constraints. #9060 In the new-table dialog, the primary key already updated its column references when a column was renamed, but foreign key and unique constraint definitions did not, leaving them pointing at the old name. Mirror the PK rename-propagation in the foreign_key and unique_constraint depChange handlers (and add 'columns' to the unique constraint deps so it fires on column changes). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Address review feedback for column rename propagation (#9060) - Remap unique constraint INCLUDE columns on rename. The INCLUDE list holds bare name strings (not {column} objects), so renaming an included column previously emitted stale DDL. Now mirrors the primary key INCLUDE handling. - Add regression tests covering rename propagation in depChange for foreign_key and unique_constraint, including the unique constraint INCLUDE case. - Correct the release note wording from "Create/Edit Table" to "Create Table"; the propagation only runs on the new-table path (state.oid === undefined). --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Ashesh Vashi <ashesh.vashi@enterprisedb.com>