diff --git a/docs/en_US/release_notes_6_0.rst b/docs/en_US/release_notes_6_0.rst index 64837f853..d384739fd 100644 --- a/docs/en_US/release_notes_6_0.rst +++ b/docs/en_US/release_notes_6_0.rst @@ -31,4 +31,5 @@ Bug fixes | `Issue #6723 `_ - Updated query error row selection color as per dark theme style guide. | `Issue #6724 `_ - Fixed an issue where the drop cascade button enables for Databases. | `Issue #6736 `_ - Fixed an issue where Refresh view options are not working for materialized view. +| `Issue #6755 `_ - Fixed keyerror issue in schema diff for 'attnum' and 'edit_types' parameter. | `Issue #6759 `_ - Ensure that RLS names should not be editable in the collection node of properties tab. 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 e34dd8992..e6adffe3b 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 @@ -170,12 +170,7 @@ class SchemaDiffTableCompare(SchemaDiffObjectCompare): tmp = copy.deepcopy(item) if tmp and source != tmp: - tmp_updated = copy.deepcopy(source) - # Preserve the column number - tmp_updated['attnum'] = tmp['attnum'] - if item['typname'] not in tmp_updated['edit_types']: - tmp_updated['col_type_conversion'] = False - updated.append(tmp_updated) + updated.append(source) target_cols.remove(tmp) elif tmp and source == tmp: target_cols.remove(tmp) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py index 050573f17..e13dbd1e7 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py @@ -1276,7 +1276,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings): "/".join([self.column_template_path, self._PROPERTIES_SQL]), tid=tid, - clid=c['attnum'], + clid=c['attnum'] if 'attnum' in c else None, show_sys_objects=self.blueprint.show_system_objects )