GitOps SQL Review CI

!

This feature requires Enterprise Plan.

Set up SQL Review CI

This feature requires Version Control Workflow. You can follow VCS Integration (GitOps) to set up.

vcs-sql-review

Below use GitLab as an example. GitHub works in a similar way.

When the box Enable SQL Review CI via GitLab CI is checked, Bytebase will create a merge request (MR) for your repository to set up the SQL review CI, and redirect you to the MR page. To finish the setup, you should review and merge this MR.

vcs-sql-review-prepare

vcs-sql-review-pr

After the setup, in every MR, the SQL review policy will check against changed files matching the file path template.

SQL Review CI via GitHub Action

vcs-sql-review-github

SQL Review CI via GitLab CI

vcs-sql-review-gitlab

And you can follow the doc Create Schema Review Policy to create the SQL review policy.