Ensure that user should be able to clear comments in RLS Policy.
parent
c3d6f8887a
commit
1ba9f005a7
|
|
@ -33,7 +33,8 @@ ALTER POLICY {{ conn|qtIdent(o_data.name) }} ON {{conn|qtIdent(o_data.schema, o_
|
|||
{#####################################################}
|
||||
{## Change policy comment ##}
|
||||
{#####################################################}
|
||||
{% if data.description and o_data.description != data.description %}
|
||||
{% if data.description is defined and data.description != o_data.description %}
|
||||
COMMENT ON POLICY {{ conn|qtIdent(o_data.name) }} ON {{conn|qtIdent(o_data.schema, o_data.table)}}
|
||||
IS {{ data.description|qtLiteral(conn) }};
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue