mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Improve logic to get the DDL statements as a part of the comparison. Fixes #5221
Fixed 23 issues related to schema diff.
This commit is contained in:
@@ -142,16 +142,10 @@ class SchemaDiffTestCase(BaseTestGenerator):
|
||||
file_obj = open(diff_file, 'a')
|
||||
|
||||
for diff in response_data['data']:
|
||||
if diff['type'] in self.nodes:
|
||||
src_obj_oid = tar_obj_oid = None
|
||||
if diff['status'] == 'Source Only' or\
|
||||
diff['status'] == 'Target Only':
|
||||
src_obj_oid = tar_obj_oid = diff['oid']
|
||||
elif diff['status'] == 'Different':
|
||||
src_obj_oid = diff['source_oid']
|
||||
tar_obj_oid = diff['target_oid']
|
||||
|
||||
if src_obj_oid is not None:
|
||||
if diff['type'] in self.nodes and diff['status'] == 'Identical':
|
||||
src_obj_oid = diff['source_oid']
|
||||
tar_obj_oid = diff['target_oid']
|
||||
if src_obj_oid is not None and tar_obj_oid is not None:
|
||||
url = 'schema_diff/ddl_compare/{0}/{1}/{2}/{3}/{4}/{5}/' \
|
||||
'{6}/{7}/{8}/{9}/{10}/'.format(self.trans_id,
|
||||
self.server_id,
|
||||
|
||||
Reference in New Issue
Block a user