Skip to content

Commit 4791897

Browse files
committed
Fixed an issue where the Schema Diff was not displaying the difference query when a table had a UNIQUE NULLS NOT DISTINCT constraint. #8479
1 parent 1cbdb43 commit 4791897

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

docs/en_US/release_notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ notes for it.
1212
:maxdepth: 1
1313

1414

15+
release_notes_9_2
1516
release_notes_9_1
1617
release_notes_9_0
1718
release_notes_8_14

docs/en_US/release_notes_9_2.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
***********
2+
Version 9.2
3+
***********
4+
5+
Release date: 2025-04-03
6+
7+
This release contains a number of bug fixes and new features since the release of pgAdmin 4 v9.1.
8+
9+
Supported Database Servers
10+
**************************
11+
**PostgreSQL**: 13, 14, 15, 16 and 17
12+
13+
**EDB Advanced Server**: 13, 14, 15, 16 and 17
14+
15+
Bundled PostgreSQL Utilities
16+
****************************
17+
**psql**, **pg_dump**, **pg_dumpall**, **pg_restore**: 17.2
18+
19+
20+
New features
21+
************
22+
23+
24+
Housekeeping
25+
************
26+
27+
28+
Bug fixes
29+
*********
30+
31+
| `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.

web/pgadmin/browser/server_groups/servers/databases/schemas/tables/schema_diff_table_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def table_constraint_comp(source_table, target_table):
219219
'unique_constraint': ['col_count',
220220
'condeferrable',
221221
'condeffered',
222-
'columns'],
222+
'columns', 'indnullsnotdistinct'],
223223
'check_constraint': ['consrc'],
224224
'exclude_constraint': ['amname',
225225
'indconstraint',

web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/index_constraint/sql/default/update.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ALTER INDEX {{ conn|qtIdent(data.schema, data.name) }}
1313
{% if data.fillfactor and data.fillfactor != o_data.fillfactor %}
1414
ALTER INDEX {{ conn|qtIdent(data.schema, data.name) }}
1515
SET (FILLFACTOR={{ data.fillfactor }});
16-
{% elif data.fillfactor is defined and data.fillfactor == '' %}
16+
{% elif data.fillfactor is defined and (data.fillfactor == '' or data.fillfactor != o_data.fillfactor) %}
1717
ALTER INDEX {{ conn|qtIdent(data.schema, data.name) }}
1818
RESET (FILLFACTOR);
1919
{% endif %}

0 commit comments

Comments
 (0)