From b79f6e8ccc47550314d4723ea1dc008fe29ad658 Mon Sep 17 00:00:00 2001 From: Aleksandr Smyslov Date: Thu, 12 Dec 2024 15:16:00 +0100 Subject: [PATCH] additional fix --- .../servers/databases/schemas/views/schema_diff_view_utils.py | 4 +++- web/pgadmin/tools/schema_diff/directory_compare.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/schema_diff_view_utils.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/schema_diff_view_utils.py index 82758bf24cb..6ae6055b08d 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/schema_diff_view_utils.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/schema_diff_view_utils.py @@ -127,6 +127,7 @@ def get_sql_from_submodule_diff(self, **kwargs): target = kwargs.get('target') diff_dict = kwargs.get('diff_dict') ignore_whitespaces = kwargs.get('ignore_whitespaces') + ignore_partitions = kwargs.get('ignore_partitions') diff = '' # Get the difference DDL/DML statements for table @@ -171,7 +172,8 @@ def get_sql_from_submodule_diff(self, **kwargs): "source": source, "target": target, "target_schema": target_schema, - "ignore_whitespaces": ignore_whitespaces + "ignore_whitespaces": ignore_whitespaces, + "ignore_partitions": ignore_partitions } diff = self._compare_source_and_target( intersect_keys, module_view, source_params, diff --git a/web/pgadmin/tools/schema_diff/directory_compare.py b/web/pgadmin/tools/schema_diff/directory_compare.py index 7a13b3fd79d..0abf9d623a4 100644 --- a/web/pgadmin/tools/schema_diff/directory_compare.py +++ b/web/pgadmin/tools/schema_diff/directory_compare.py @@ -358,7 +358,8 @@ def _get_identical_and_different_list(intersect_keys, source_dict, target_dict, target_params=temp_tgt_params, source=dict1[key], target=dict2[key], diff_dict=diff_dict, target_schema=target_schema, - ignore_whitespaces=ignore_whitespaces) + ignore_whitespaces=ignore_whitespaces, + ignore_partitions=ignore_partitions) else: temp_src_params = copy.deepcopy(source_params) temp_tgt_params = copy.deepcopy(target_params)