Skip to main content

Database Workflow

During Development

Use pnpm db:push for fast schema iteration. If you want a clean slate, delete the Docker container and re-run ./start-database.sh.

Before Merging (with schema changes)

This is important — follow these steps:

  1. Clear your database (delete the Docker container, re-run ./start-database.sh)
  2. Run pnpm db:generate to create migration files
  3. Run pnpm db:migrate to apply them
  4. Test the branch to make sure everything works with a fresh migration