mirror of
https://github.com/FlipsideCrypto/eclipse-models.git
synced 2026-02-06 09:26:43 +00:00
add change tracking (#63)
This commit is contained in:
parent
285be4b1c2
commit
e50f9f6e60
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user