chore: Update grants.sql to include "hosted" target in execute condition

This commit is contained in:
Julius Remigio 2024-08-16 11:48:42 -07:00
parent 6709d4655a
commit 2ae5fbfb7e

View File

@ -33,7 +33,7 @@
`dbt run-operation apply_grants_to_all_schema`
#}
{% if execute and target.name == "prod" %}
{% if execute and target.name in ("prod", "hosted",) %}
{% set sql_get_schema %}
SELECT SCHEMA_NAME
FROM {{ target.database }}.INFORMATION_SCHEMA.SCHEMATA