rm -rf ~/.bytebase/data
.
workspace admin
role automatically.
SQL Review Sample Policy
.
Prod
, you may click Change attached resources to attach it to other Environments or Projects. Here we’ll keep it as is. You may also click Change the template to change the rules.
Default SQL Review Template
and click Next. Add one rule Enforce setting default value on columns
, set Error Level to Error
and click Confirm and update.
Sample Project
, since the default SQL Review policy is attached to the Prod
environment, we’ll create a new table on it. Click Database > Databases on the left side menu, select hr_prod
and click Edit Schema.
Prod hr_prod > public > Tables
on the left bar. Create a new table t1
with one column id
and name
, intentionly unclick Not Null for name
and click Preview issue.
Error
.