Fixed an issue where difference DDL is showing the wrong SQL when changing the policy owner. Fixes #5647

This commit is contained in:
Akshay Joshi
2020-07-15 14:52:14 +05:30
parent 2469032f15
commit 11c4877859
3 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class SchemaDiffTableCompare(SchemaDiffObjectCompare):
constraint_keys_to_ignore = ['relname', 'nspname', 'parent_tbl',
'attrelid', 'adrelid', 'fknsp', 'confrelid',
'references', 'refnsp', 'remote_schema',
'conkey', 'indkey']
'conkey', 'indkey', 'references_table_name']
trigger_keys_to_ignore = ['xmin', 'tgrelid', 'tgfoid', 'tfunction',
'tgqual', 'tgconstraint']

View File

@@ -1,5 +1,5 @@
{% if data.autoindex %}
{% if data.autoindex and data.coveringindex%}
CREATE INDEX {{ conn|qtIdent(data.coveringindex) }}
ON {{ conn|qtIdent(data.schema, data.table) }}({% for columnobj in data.columns %}{% if loop.index != 1 %}
, {% endif %}{{ conn|qtIdent(columnobj.local_column)}}{% endfor %});
{% endif %}
{% endif %}