Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fix macro for failing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjanasen96 committed Jun 23, 2020
1 parent dee0669 commit 6698162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration_tests/macros/drop_audit_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{% set audit_schema=logging.get_audit_schema() %}

{% if adapter.check_schema_exists(target.database, audit_schema) %}
{% do drop_schema(target.database, audit_schema) %}
{% set audit_schema_relation = api.Relation.create(database=target.database, schema=audit_schema).without_identifier() %}
{% do drop_schema(audit_schema_relation) %}
{% do run_query("commit;") %}
{{ dbt_utils.log_info("Audit schema dropped")}}

Expand Down

0 comments on commit 6698162

Please sign in to comment.