archive: don't create schema if it already exists #758
Labels
enhancement
New feature or request
good_first_issue
Straightforward + self-contained changes, good for new contributors!
snapshots
Issues related to dbt's snapshot functionality
Milestone
When
dbt archive
is invoked, dbt will always try to create a schema for each archive using:Instead, dbt should check if the schema already exists, and skip this step if it does indeed exist. If users invoke
dbt archive
with a user that lackscreate schema
permissions, the above statement will fail even if the schema already exists! Relevant code is here: https://github.com/fishtown-analytics/dbt/blob/development/dbt/include/global_project/macros/materializations/archive/archive.sql#L113The text was updated successfully, but these errors were encountered: