dbt Constraints v0.2.0
New Features
- This release adds optional support for constraints on sources. These are not enabled by default but can be enabled using a variable.
- In order to add source constraint support, two additional macros are now needed for each database because we now need to verify database permissions. It could be presumed that dbt projects had OWNERSHIP on models but that is not something that should be assumed for sources. Each constraint with a source will now lookup OWNERSHIP and REFERENCES permissions as necessary for PK, UK, and FK. For performance reasons I have skipped checking permissions for constraints that only have models.
- Documentation has been updated and a new TROUBLESHOOTING.md file has been added with all the logged error messages and some tips for how to resolve the message. These are non-fatal messages such ask skipping a FK because a PK/UK does not exist.
Fixes
None
Known issues
None