Ensure that user should be able to clear comments in RLS Policy.

This commit is contained in:
Rohit Bhati authored and GitHub committed 2024-06-17 18:11:57 +05:30
1 parent c3d6f8887a
commit 1ba9f005a7
1 file changed
+2 -1
@@ -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 %}