My Schema Ships in the Binary — 300 Lines of Embedded Migrations and Three Files Named 0002
There is a file in my repo called internal/database/migrator.go. It is a little over 300 lines including comments, it has no dependencies beyond lib/pq, and it has moved my agent platform’s Postgres schema through sixteen versions without a single “run the migrate tool first” comment in a deploy ticket. This is a post about why I trust 300 lines more than a dependency, and about the four ways it can still bite me — because I’m not going to pretend hand-rolled means bite-free.