diff --git a/dbt_project.yml b/dbt_project.yml index 42e4b36..ba5004f 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -44,6 +44,15 @@ models: materialized: ephemeral eclipse_models: +pre-hook: '{{ fsc_utils.set_query_tag() }}' + gold: + +post-hook: > + {% if 'exclude_change_tracking' not in config.get('tags') %} + {% if config.get('materialized') == 'view' %} + ALTER VIEW {{ this }} SET CHANGE_TRACKING = TRUE; + {% else %} + ALTER TABLE {{ this }} SET CHANGE_TRACKING = TRUE; + {% endif %} + {% endif %} tests: +store_failures: true # all tests