Define your database schema in code and apply changes safely through pull requests or the CLI
// momentum
// why it's here
- Active: last commit today
- Health 93/100 with only 33 stars
// how to help
// readme
SchemaBot is declarative and GitOps-driven: SQL files in your repository provide a shared source of truth across environments. It compares those files with the live database, shows the exact change, and applies it through pull requests or a CLI.
The PR workflow
Walk through the illustrated PR workflow
From your terminal
Plan and apply a change. Review the SQL, apply the change, and follow it to completion.
Know your database fleet. Explore live schemas, spot lint issues, and follow changes through their logs.
Freeze an environment. For a code freeze or an incident, hold new schema changes until you lift the freeze.
Get started with the CLI ยท Explore your database fleet ยท Freeze an environment
Block runs SchemaBot for the majority of its production schema changes, including MySQL tables spanning terabytes and Vitess databases with hundreds of shards.