-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add explicit ddl for drop statements instead of inheriting the defaul…
…t from dbt-core
- Loading branch information
1 parent
17aae86
commit a31189e
Showing
3 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
plugins/postgres/dbt/include/postgres/macros/relations/materialized_view/drop.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% macro postgres__drop_materialized_view(relation) -%} | ||
drop materialized view if exists {{ relation }} cascade | ||
{%- endmacro %} |
3 changes: 3 additions & 0 deletions
3
plugins/postgres/dbt/include/postgres/macros/relations/table/drop.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% macro postgres__drop_table(relation) -%} | ||
drop table if exists {{ relation }} cascade | ||
{%- endmacro %} |
3 changes: 3 additions & 0 deletions
3
plugins/postgres/dbt/include/postgres/macros/relations/view/drop.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% macro postgres__drop_view(relation) -%} | ||
drop view if exists {{ relation }} cascade | ||
{%- endmacro %} |