mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the wrong schema is displayed for a foreign key in the schema diff tool. #5488
This commit is contained in:
@@ -355,8 +355,8 @@ def _checks_for_schema_diff(table, schema, data):
|
||||
|
||||
if 'remote_schema' not in data:
|
||||
data['remote_schema'] = None
|
||||
elif 'schema' in data and (schema is None or schema == ''):
|
||||
data['remote_schema'] = data['schema']
|
||||
if 'schema' in data and (schema is None or schema == ''):
|
||||
data['remote_schema'] = data['schema']
|
||||
|
||||
if 'remote_table' not in data:
|
||||
data['remote_table'] = None
|
||||
|
||||
@@ -30,7 +30,8 @@ class SchemaDiffTableCompare(SchemaDiffObjectCompare):
|
||||
constraint_keys_to_ignore = ['relname', 'nspname', 'parent_tbl',
|
||||
'attrelid', 'adrelid', 'fknsp', 'confrelid',
|
||||
'references', 'refnsp', 'remote_schema',
|
||||
'conkey', 'indkey', 'references_table_name']
|
||||
'conkey', 'indkey', 'references_table_name',
|
||||
'refnspoid']
|
||||
|
||||
trigger_keys_to_ignore = ['xmin', 'tgrelid', 'tgfoid', 'tfunction',
|
||||
'tgqual', 'tgconstraint']
|
||||
|
||||
Reference in New Issue
Block a user