What problem does it solve?
Prevents unsafe or forgotten database schema changes by providing a disciplined workflow for generating, reviewing, applying, and shipping Drizzle ORM migrations in a Docker-based monorepo environment.
Core Features & Use Cases
- Safe Generation: Instructs how to generate migrations and review the resulting SQL to avoid unintended destructive operations.
- Controlled Application: Guides applying migrations locally and verifying type propagation to catch downstream breaks.
- Docker Sync Awareness: Ensures migration files are committed and staged so Docker builds (including Railway deployments) use the correct migration set.
- Use Case: Modify the schema in packages/database/src/schema, generate a migration, inspect the SQL for DROP operations, apply it locally, run type checks, and commit the migration so production Docker images include it.
Quick Start
Generate a new Drizzle migration from changes in packages/database/src/schema, apply it locally, run type checks, and stage the migration files for Docker synchronization.