From 56e2c9db97456278a7f6ebcabbc4cfaa5ee1f5bb Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Mon, 22 Aug 2022 11:56:11 +0530 Subject: [PATCH] Ensure that If the trigger function definition is changed, drop and recreate the trigger in the schema diff. Fixes #7630 --- docs/en_US/release_notes_6_13.rst | 1 + .../servers/databases/schemas/tables/triggers/__init__.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en_US/release_notes_6_13.rst b/docs/en_US/release_notes_6_13.rst index 16d3c7fa9..6b31c4583 100644 --- a/docs/en_US/release_notes_6_13.rst +++ b/docs/en_US/release_notes_6_13.rst @@ -46,3 +46,4 @@ Bug fixes | `Issue #7616 `_ - Ensure that the next button should be disabled if the password did not match for Azure deployment. | `Issue #7617 `_ - Fixed an issue where Azure cloud deployment failed. | `Issue #7625 `_ - Fixed Spanish translations typo. + | `Issue #7630 `_ - Ensure that If the trigger function definition is changed, drop and recreate the trigger in the schema diff. diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/triggers/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/triggers/__init__.py index 7127af70e..f591d8955 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/triggers/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/triggers/__init__.py @@ -244,8 +244,7 @@ class TriggerView(PGChildNodeView, SchemaDiffObjectCompare): }) # Schema Diff: Keys to ignore while comparing - keys_to_ignore = ['oid', 'xmin', 'nspname', 'tgrelid', 'tgfoid', 'prosrc', - 'oid-2'] + keys_to_ignore = ['oid', 'xmin', 'nspname', 'tgrelid', 'tgfoid', 'oid-2'] def check_precondition(f): """