Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move schema creation to after hooks #652

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

drewbanin
Copy link
Contributor

Fixes #604

This PR moves schema creation to after the on-run-start hooks. This makes it possible to add a hook to resume a Snowflake warehouse, for instance. This hook could look like:

on-run-start:
  - alter warehouse {{ target.warehouse }} resume;

Note: This could break existing projects if there is code in the on-run-start hooks that expects the dbt schema to exist. In this case, a line can be inserted into the on-run-start section to create the schema.

@drewbanin drewbanin added enhancement New feature or request snowflake labels Feb 9, 2018
@drewbanin drewbanin added this to the 0.9.2 milestone Feb 9, 2018
@cmcarthur cmcarthur merged commit 6783966 into development Feb 27, 2018
@cmcarthur cmcarthur deleted the create-schema-after-hooks branch February 27, 2018 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request snowflake
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants