diff --git a/docs/en_US/release_notes_4_24.rst b/docs/en_US/release_notes_4_24.rst index 7b28d5239..4d47102d4 100644 --- a/docs/en_US/release_notes_4_24.rst +++ b/docs/en_US/release_notes_4_24.rst @@ -39,5 +39,6 @@ Bug fixes | `Issue #5630 `_ - Fixed an issue where installation of pgadmin4 not working on 32-bit Windows. | `Issue #5631 `_ - Fixed 'cant execute empty query' issue when remove the value of 'USING' or 'WITH CHECK' option of RLS Policy. | `Issue #5633 `_ - Ensure that create RLS Policy menu should not be visible for catalog objects. +| `Issue #5647 `_ - Fixed an issue where difference DDL is showing the wrong SQL when changing the policy owner. | `Issue #5662 `_ - Fixed accessibility issue where few dialogs are not rendering properly when we zoomed in browser window 200% and screen resolution is low. | `Issue #5673 `_ - Fixed an issue where fetching the schema throws an error if the database is not connected in Schema Diff. \ No newline at end of file diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/schema_diff_utils.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/schema_diff_utils.py index 44a7e6fd8..eb5aac4a5 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/schema_diff_utils.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/schema_diff_utils.py @@ -27,7 +27,7 @@ class SchemaDiffTableCompare(SchemaDiffObjectCompare): constraint_keys_to_ignore = ['relname', 'nspname', 'parent_tbl', 'attrelid', 'adrelid', 'fknsp', 'confrelid', 'references', 'refnsp', 'remote_schema', - 'conkey', 'indkey'] + 'conkey', 'indkey', 'references_table_name'] trigger_keys_to_ignore = ['xmin', 'tgrelid', 'tgfoid', 'tfunction', 'tgqual', 'tgconstraint'] diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/foreign_key/sql/default/create_index.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/foreign_key/sql/default/create_index.sql index f9c1e88b7..dcc5a28a9 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/foreign_key/sql/default/create_index.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/foreign_key/sql/default/create_index.sql @@ -1,5 +1,5 @@ -{% if data.autoindex %} +{% if data.autoindex and data.coveringindex%} CREATE INDEX {{ conn|qtIdent(data.coveringindex) }} ON {{ conn|qtIdent(data.schema, data.table) }}({% for columnobj in data.columns %}{% if loop.index != 1 %} , {% endif %}{{ conn|qtIdent(columnobj.local_column)}}{% endfor %}); -{% endif %} \ No newline at end of file +{% endif %}