From 2ae5fbfb7e5cb180f6db90f38faadee4f16476bf Mon Sep 17 00:00:00 2001 From: Julius Remigio <14811322+juls858@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:48:42 -0700 Subject: [PATCH] chore: Update grants.sql to include "hosted" target in execute condition --- macros/grants.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/grants.sql b/macros/grants.sql index a69bd4b..0610b42 100644 --- a/macros/grants.sql +++ b/macros/grants.sql @@ -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