pgmg

JSON →
library 0.0.11 ·javascript
verified Jun 5, 2026

pgmg is a forward-only, idempotent PostgreSQL migration tool that focuses on minimal magic and simplicity. Version 0.0.11 (pre-1.0) uses postgres.js to run migrations defined as ES modules exporting a transaction function. It stores migration metadata in a pgmg.migration table within the target database, enabling easy reset for development. Unlike tools like node-pg-migrate or db-migrate, pgmg avoids complex configuration and ordering, relying on glob order and idempotent execution. The package is experimental and has sparse documentation.