Getting started
Protect your first repository in a minute.
Add one workflow file. Every pull request that changes a migration then gets a safety report before it can merge.
-
1
Create the workflow file
Create a file named
.github/workflows/schemabrake.ymlin your repository:SchemaBrake finds Prisma and Drizzle migrations on its own. Keep yours somewhere else? Add
with: paths: db/migrationsunder the last step. -
2
Open a pull request
Push this file, then open a pull request that changes a migration. SchemaBrake posts its report as a comment, updates that same comment on every push, and marks each hazard on its line in the diff.
Questions or feedback?
Email [email protected] or open an issue on GitHub.