From 3e09f1bf40489a36f0bb0ae379dc35d43f545ccb Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Thu, 21 Jan 2021 14:18:06 +0530 Subject: [PATCH] Ensure that the current value of the sequence should be ignored while comparing using schema diff. Fixes #6144 --- docs/en_US/release_notes_4_30.rst | 1 + .../servers/databases/schemas/sequences/__init__.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/en_US/release_notes_4_30.rst b/docs/en_US/release_notes_4_30.rst index 8a0d73ce0..b354dd6e7 100644 --- a/docs/en_US/release_notes_4_30.rst +++ b/docs/en_US/release_notes_4_30.rst @@ -52,3 +52,4 @@ Bug fixes | `Issue #6122 `_ - Added informative message when there is no difference found for schema diff. | `Issue #6128 `_ - Fixed an issue where sequences are not created. | `Issue #6140 `_ - Ensure that verbose logs should be visible for Utility(Backup, Maintenance) jobs. +| `Issue #6144 `_ - Ensure that the current value of the sequence should be ignored while comparing using schema diff. diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/__init__.py index 4bc05b8fd..dd0fe7386 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/__init__.py @@ -118,6 +118,8 @@ class SequenceView(PGChildNodeView, SchemaDiffObjectCompare): 'dependent': [{'get': 'dependents'}] }) + keys_to_ignore = ['oid', 'oid-2', 'schema', 'current_value'] + def check_precondition(action=None): """ This function will behave as a decorator which will checks