A minimal database migration tool for Node.js, version 0.2.8 (last release, likely abandoned since 2014). It provides a simple CLI to create, apply (`up`), rollback (`down`), and refresh migrations. Migrations are plain JavaScript files exporting `up` and `down` functions using callback-based (success/error) or async patterns. Compared to tools like `db-migrate` or `knex`, mgrt is un-opinionated, has no built-in database adapters, and relies on custom storage backends. Designed for lightweight projects, but lacks maintenance and modern features like ESM support.
npm install mgrtNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs mgrt globally, initializes a project, creates a migration, edits it, and runs up/down.
Consider migrating to maintained tools like node-pg-migrate or knex.
Always return after calling error() or use early return pattern.
Wrap promise-based adapters in callback style.
Switch to a maintained alternative.
Run npm install -g mgrt@latest or install locally.
Use mgrt via command line: mgrt up