From 9cd8492ec19c5809d6d454024b811c2f593ffe25 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Thu, 19 Dec 2024 16:40:18 +0530 Subject: [PATCH] Fixed an issue where Schema Diff not produce difference script for Index definition with where condition. #8072 --- docs/en_US/release_notes_9_0.rst | 1 + .../servers/databases/schemas/tables/indexes/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_9_0.rst b/docs/en_US/release_notes_9_0.rst index 253c693c2..81e3229ab 100644 --- a/docs/en_US/release_notes_9_0.rst +++ b/docs/en_US/release_notes_9_0.rst @@ -31,6 +31,7 @@ Bug fixes ********* | `Issue #6968 `_ - Fixed an issue where option key was not registering in PSQL tool. + | `Issue #8072 `_ - Fixed an issue where Schema Diff not produce difference script for Index definition with where condition. | `Issue #8142 `_ - Correct the documentation for the MFA configuration. | `Issue #8208 `_ - Allow deleting the entry while creating/adding new label to enumeration type. | `Issue #8209 `_ - Fixed an issue where properties dialog throwing an error for Materialized View. \ No newline at end of file diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/indexes/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/indexes/__init__.py index b4ef91c76..4e1715000 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/indexes/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/indexes/__init__.py @@ -1145,7 +1145,7 @@ class IndexesView(PGChildNodeView, SchemaDiffObjectCompare): difference={} ) - required_create_keys = ['columns'] + required_create_keys = ['columns', 'indconstraint'] create_req = IndexesView._check_for_create_req( required_create_keys,