Fixed an issue where the Schema Diff was not displaying the difference query when a table had a UNIQUE NULLS NOT DISTINCT constraint. #8479

pull/8493/head
Akshay Joshi 2025-03-03 18:39:09 +05:30
parent 1cbdb435df
commit 4791897578
4 changed files with 34 additions and 2 deletions

View File

@ -12,6 +12,7 @@ notes for it.
:maxdepth: 1
release_notes_9_2
release_notes_9_1
release_notes_9_0
release_notes_8_14

View File

@ -0,0 +1,31 @@
***********
Version 9.2
***********
Release date: 2025-04-03
This release contains a number of bug fixes and new features since the release of pgAdmin 4 v9.1.
Supported Database Servers
**************************
**PostgreSQL**: 13, 14, 15, 16 and 17
**EDB Advanced Server**: 13, 14, 15, 16 and 17
Bundled PostgreSQL Utilities
****************************
**psql**, **pg_dump**, **pg_dumpall**, **pg_restore**: 17.2
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #8479 <https://github.com/pgadmin-org/pgadmin4/issues/8479>`_ - Fixed an issue where the Schema Diff was not displaying the difference query when a table had a UNIQUE NULLS NOT DISTINCT constraint.

View File

@ -219,7 +219,7 @@ class SchemaDiffTableCompare(SchemaDiffObjectCompare):
'unique_constraint': ['col_count',
'condeferrable',
'condeffered',
'columns'],
'columns', 'indnullsnotdistinct'],
'check_constraint': ['consrc'],
'exclude_constraint': ['amname',
'indconstraint',

View File

@ -13,7 +13,7 @@ ALTER INDEX {{ conn|qtIdent(data.schema, data.name) }}
{% if data.fillfactor and data.fillfactor != o_data.fillfactor %}
ALTER INDEX {{ conn|qtIdent(data.schema, data.name) }}
SET (FILLFACTOR={{ data.fillfactor }});
{% elif data.fillfactor is defined and data.fillfactor == '' %}
{% elif data.fillfactor is defined and (data.fillfactor == '' or data.fillfactor != o_data.fillfactor) %}
ALTER INDEX {{ conn|qtIdent(data.schema, data.name) }}
RESET (FILLFACTOR);
{% endif %}