Skip to content

Commit

Permalink
changes to create schema for use_common_masking_policy_schema_only us…
Browse files Browse the repository at this point in the history
…e case (#36)
  • Loading branch information
entechlog authored Jun 8, 2022
1 parent 22d7260 commit a59a141
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions macros/snow-mask/create-policy/create_masking_policy.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@

{% set current_policy_name = masking_policy[2] | string %}

{%- if (var('use_common_masking_policy_db', 'False')|upper in ['TRUE','YES']) -%}
{%- if (var('create_masking_policy_schema', 'True')|upper in ['TRUE','YES']) -%}
{% do adapter.create_schema(api.Relation.create(database=masking_policy_db, schema=masking_policy_schema)) %}
{% endif %}
{%- if (var('create_masking_policy_schema', 'True')|upper in ['TRUE','YES']) -%}
{% do adapter.create_schema(api.Relation.create(database=masking_policy_db, schema=masking_policy_schema)) %}
{% endif %}

{% set call_masking_policy_macro = context["create_masking_policy_" | string ~ current_policy_name | string] %}
Expand Down

0 comments on commit a59a141

Please sign in to comment.