mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-25 16:31:07 -06:00
Ensure table definitions include WHERE clauses on EXCLUDE constraints. Fixes #3726
This commit is contained in:
parent
d14fb85fff
commit
ffae65bdbe
@ -90,11 +90,11 @@
|
|||||||
{% endif %}{% if data.fillfactor %}
|
{% endif %}{% if data.fillfactor %}
|
||||||
WITH (FILLFACTOR={{data.fillfactor}}){% endif %}{% if data.spcname and data.spcname != "pg_default" %}
|
WITH (FILLFACTOR={{data.fillfactor}}){% endif %}{% if data.spcname and data.spcname != "pg_default" %}
|
||||||
USING INDEX TABLESPACE {{ conn|qtIdent(data.spcname) }}{% endif %}
|
USING INDEX TABLESPACE {{ conn|qtIdent(data.spcname) }}{% endif %}
|
||||||
{% if data.condeferrable %}
|
{% if data.indconstraint %}WHERE ({{data.indconstraint}}){% endif%}{% if data.condeferrable %}
|
||||||
|
|
||||||
DEFERRABLE{% if data.condeferred %}
|
DEFERRABLE{% if data.condeferred %}
|
||||||
INITIALLY DEFERRED{% endif%}
|
INITIALLY DEFERRED{% endif%}
|
||||||
{% endif%}{% if data.constraint %} WHERE ({{data.constraint}}){% endif%}
|
{% endif%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
{##########################}
|
{##########################}
|
||||||
|
Loading…
Reference in New Issue
Block a user