diff --git a/dbt_project.yml b/dbt_project.yml index ff49e7a..4edfc30 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,17 +1,21 @@ name: 'dbt_date' -version: '0.1' +version: '0.2' + +config-version: 2 target-path: "target" clean-targets: ["target", "dbt_modules"] macro-paths: ["macros"] log-path: "logs" -require-dbt-version: ">=0.14.0" -profile: dev +require-dbt-version: [">=0.18.0", "<0.19.0"] +profile: integration_tests + quoting: identifier: false schema: false +vars: + 'dbt_date:time_zone': 'America/Los_Angeles' + models: - vars: - 'dbt_date:time_zone': 'America/Los_Angeles' \ No newline at end of file diff --git a/macros/fiscal_date/get_fiscal_year_dates.sql b/macros/fiscal_date/get_fiscal_year_dates.sql index 3b76674..f90448f 100644 --- a/macros/fiscal_date/get_fiscal_year_dates.sql +++ b/macros/fiscal_date/get_fiscal_year_dates.sql @@ -1,5 +1,5 @@ {% macro get_fiscal_year_dates(dates, year_end_month=12, week_start_day=1, shift_year=1) %} -{{ adapter_macro('dbt_date.get_fiscal_year_dates', dates, year_end_month, week_start_day, shift_year) }} +{{ adapter.dispatch('get_fiscal_year_dates', packages = dbt_date._get_utils_namespaces()) (dates, year_end_month, week_start_day, shift_year) }} {% endmacro %} {% macro default__get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) %} diff --git a/packages.yml b/packages.yml index 1bc7720..2246ac8 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,3 @@ packages: - package: fishtown-analytics/dbt_utils - version: [">=0.2.0", "<0.3.0"] + version: [">=0.6.0", "<0.7.0"]