pgadmin-org / pgadmin4

pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
https://www.pgadmin.org
Other
2.27k stars 611 forks source link

Updating column name does not update it on the constraint include column #7617

Open pravesh-sharma opened 1 week ago

pravesh-sharma commented 1 week ago

Describe the bug When creating a new table if the column name is changed and it is used inside the constraint include column it is not updated.

To Reproduce

Steps to reproduce the behavior:

  1. Start creating a table and add columns.
  2. Move to the constraint tab and create a constraint e.g. a Primary key.
  3. Select columns and include columns for the primary key.
  4. Move back to the columns tab and change the column names.
  5. Go to the constraint tab, the column name is updated but the include column is still old.

Expected behavior Column name should be updated on the include column field as well.

Screen recording

https://github.com/pgadmin-org/pgadmin4/assets/111979571/67506323-6900-42b6-b50e-297bcc5dcff6

Desktop (please complete the following information):