mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-25 10:10:19 -06:00
Fixed keyerror issue in schema diff for 'attnum' and 'edit_types' parameter. Fixes #6755
This commit is contained in:
parent
2265ffc0a7
commit
1569be7866
@ -31,4 +31,5 @@ Bug fixes
|
||||
| `Issue #6723 <https://redmine.postgresql.org/issues/6723>`_ - Updated query error row selection color as per dark theme style guide.
|
||||
| `Issue #6724 <https://redmine.postgresql.org/issues/6724>`_ - Fixed an issue where the drop cascade button enables for Databases.
|
||||
| `Issue #6736 <https://redmine.postgresql.org/issues/6736>`_ - Fixed an issue where Refresh view options are not working for materialized view.
|
||||
| `Issue #6755 <https://redmine.postgresql.org/issues/6755>`_ - Fixed keyerror issue in schema diff for 'attnum' and 'edit_types' parameter.
|
||||
| `Issue #6759 <https://redmine.postgresql.org/issues/6759>`_ - Ensure that RLS names should not be editable in the collection node of properties tab.
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user