mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added support of Domain, Domain Constraints and Types to the Schema Diff. Fixes #5262
This commit is contained in:
@@ -326,7 +326,8 @@ def directory_diff(source_dict, target_dict, ignore_keys=[], difference={}):
|
||||
pass
|
||||
elif type(source) is dict:
|
||||
tmp_key_array = ['name', 'colname', 'argid', 'token',
|
||||
'option']
|
||||
'option', 'conname', 'member_name',
|
||||
'label']
|
||||
# Check the above keys are exist in the dictionary
|
||||
tmp_key = is_key_exists(tmp_key_array, source)
|
||||
if tmp_key is not None:
|
||||
@@ -408,6 +409,8 @@ def parce_acl(source, target):
|
||||
key = 'datacl'
|
||||
elif 'relacl' in source:
|
||||
key = 'relacl'
|
||||
elif 'typacl' in source:
|
||||
key = 'typacl'
|
||||
|
||||
tmp_source = source[key] if\
|
||||
key in source and source[key] is not None else []
|
||||
|
||||
Reference in New Issue
Block a user