ERROR
, WARNING
) to control validation strictnessTest
and Prod
) set upTerraform resource | bytebase_review_config |
Sample file | 5-sql-review.tf |
5-sql-review.tf
with the SQL review configuration:
Prod
environment. Alternatively, you can scope rules to a specific project by using bytebase_project.sample_project.name
in the resources
attribute.Sample SQL Review Config
listed, showing that it’s applied to the Prod
environment.
hr_prod
database and click Edit Schema.
first_name
, last_name
)id
, created_ts
, updated_ts
, creator_id
, updater_id
)ERROR
: Blocks SQL statement execution, preventing non-compliant changes from proceedingWARNING
: Permits execution while alerting users to potential issues, useful for gradual policy adoptionWARNING
level rules to familiarize teams with standards, then gradually transition to ERROR
level for enforcement