Skip to content

dbt Constraints v1.0.4

Latest
Compare
Choose a tag to compare
@sfc-gh-dflippo sfc-gh-dflippo released this 30 Sep 17:17
b8a1a08

What's Changed

  • Added additional logic to detect when a table exists before creating constraints. The code was previously trying to create UK and FK on parent tables when the child is selected and the parent has not yet been created. @sfc-gh-dflippo in #81
  • Also identified where the macro could fail when a model fails. Now if there is a SQL issue with a model, the macro will correctly skip constraints for that model. In the process also hardened the code by checking whether more attributes exist for tests in the results and metadata.

Full Changelog: 1.0.3...1.0.4