rm -rf ~/.bytebase/data
.
Sample Template
which has 20 enabled rules and click Confirm and add. Attach the SQL review to Environment Prod
and click Confirm.
NOT NULL
rule.
Sample Project
, navigate to CI/CD > Plans and click + New Plan.
hr_prod
database as the target since the default SQL Review policy is attached to the Prod
environment. Click Confirm to proceed. You can use the Schema Editor to visually design the schema, here we’ll intentionally uncheck Not Null for nickname
column.
Draft
status. SQL Review will run automatically, and you’ll see violations against our defined rules marked in orange as warning
.
NOT NULL
constraints. Click Save to update the plan. The SQL Review checks will run again and should now pass.