> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bytebase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Review

[SQL Review](https://docs.bytebase.com/concepts/sql-review.md) automatically checks SQL against configured policies before execution. It is distinct from human approval, which is recorded in the Plan's [Issue](https://docs.bytebase.com/concepts/issue.md). See the concept page for how checks work and how to interpret findings.

## How It Works

When you create or edit a UI Plan, SQL Review checks its SQL and reports findings. Release-based Plans use [SQL Review in CI](https://docs.bytebase.com/gitops/migration-based-workflow/sql-review-ci.md) instead of these Plan checks:

![column-required](https://mintcdn.com/dbx/oPldGQC4HFcCc-EY/content/docs/sql-review/schema-review-column-required.webp?fit=max\&auto=format\&n=oPldGQC4HFcCc-EY\&q=85\&s=1ac0ea4d43a48ffd46258bbca01a453d)

## Review Results

SQL Review results appear directly in the Plan interface, showing:

* **Errors**: Must be fixed before the change can proceed
* **Warnings**: Should be reviewed but won't block execution
* **Passed checks**: Confirmations that rules are satisfied

## Configuring Review Policies

Review policies determine which rules are enforced for your database changes. You can configure these policies at the environment or project level.

> [card] [Configure SQL Review Policies](https://docs.bytebase.com/sql-review/review-policy.md)
>
> Learn how to set up and customize SQL Review policies for your environments and projects

## Review Rules Reference

Bytebase provides comprehensive review rules for each database engine, covering:

* Schema design best practices
* Performance optimization
* Security requirements
* Naming conventions

> [card] [SQL Review Rules](https://docs.bytebase.com/sql-review/review-rules.md)
>
> Browse the complete list of available review rules for each database engine

## Handling Review Feedback

When SQL Review identifies issues:

1. **Review the findings**: Click on each issue to understand what needs to be fixed
2. **Update your SQL**: Modify the statements to comply with the rules
3. **Re-run the review**: The review automatically runs again when you save changes
4. **Proceed when cleared**: Once all errors are resolved, continue with the approval process

## Integration with Approval Flow

Inspect SQL Review findings before submitting the linked Issue with **Ready for Review**. The **Review** section shows the approval flow and discussion; automated findings remain in the Plan checks. [Approval rules](https://docs.bytebase.com/change-database/approval.md) determine whether human approval is required.

Passing SQL Review does not approve or deploy a change. See [rollout requirements](https://docs.bytebase.com/change-database/environment-policy/rollout-policy.md#configurable-rollout-requirements-in-project) for the checks required before execution.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.