diff --git a/macros/does_table_exist.sql b/macros/does_table_exist.sql index c219f688..bb1fc0c6 100644 --- a/macros/does_table_exist.sql +++ b/macros/does_table_exist.sql @@ -1,6 +1,8 @@ {%- macro does_table_exist(table_name) -%} {%- if execute -%} -- returns true when dbt is in execute mode {%- set ns = namespace(has_table=false) -%} -- declare boolean namespace and default value + {%- set stripe_database = var('stripe_database') -%} -- get stripe database from project.yml + {%- set stripe_schema = var('stripe_schema') -%} -- get stripe schema from project.yml {%- for node in graph.sources.values() -%} -- grab sources from the dictionary of nodes -- call the database for the matching table {%- set source_relation = adapter.get_relation( @@ -14,4 +16,4 @@ {% endif %} {%- endfor -%} {%- endif -%} -{%- endmacro -%} \ No newline at end of file +{%- endmacro -%}