Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Getting Started

There are two paths to adopting pgmagmig, depending on whether you’re starting with a fresh database or transitioning an existing one.

  • Fresh Database — you’re setting up a new project and want to manage the database schema from scratch.
  • Existing Database — you have a production database with an established schema, possibly managed by another migration tool, and want to switch to pgmagmig.

Both paths start with the bootstrap command, which creates the initial migration file(s) and provides instructions tailored to your situation.