A minimal PostgreSQL database migration tool, version 0.0.6. Offers commands to generate, up, and down migrations. Released as a lightweight alternative to node-pg-migrate with no external dependencies. Configuration is done via a JavaScript file exporting a PG connection config. Migration files are SQL-based and versioned.
npm install mini-pg-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installation, config setup, generate, up, and down commands.
Use `mini-pg-migrate migrate:up ...` and `mini-pg-migrate migrate:down ...` in npm scripts.
Always use absolute paths or paths relative to where you run the command.
Manually review SQL for errors. The tool does not parse or validate SQL.
npm install pg
Ensure the config file exists and path is correct.
Check DATABASE_URL or connection settings in config.