Skip to content

Commit 33923c2

Browse files
author
Michael Myaskovsky
committed
not using dbt.drop_schema
1 parent 119f750 commit 33923c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration_tests/deprecated_tests/macros/e2e_tests/clear_tests.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
{% macro default__drop_schema(database_name, schema_name) %}
2626
{% set schema_relation = api.Relation.create(database=database_name, schema=schema_name) %}
27-
{% do dbt.drop_schema(schema_relation) %}
27+
{%- call statement('drop_schema') -%}
28+
drop schema if exists {{ schema_relation.database }}.{{ schema_relation.schema }} cascade
29+
{% endcall %}
2830
{% do adapter.commit() %}
2931
{% do elementary.edr_log("dropped schema {}".format(schema_relation | string)) %}
3032
{% endmacro %}

0 commit comments

Comments
 (0)