Lightweight database migration tool for Node.js supporting PostgreSQL and MySQL. Current stable version is 0.2.3, released as a minimal CLI tool with no runtime dependencies. It uses a JSON config file (.migrorc) and organizes migrations by version and database, with alphabetical sorting. Unlike more full-featured tools like Knex or Umzug, Migro is simple and focused, but has limited driver support (only PostgreSQL actively) and is not actively maintained. Compatible with Node >=10.
npm install migroNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a PostgreSQL database, create a version and migration, then apply it.
Use only PostgreSQL. Do not expect MySQL support.
Consider alternatives like Umzug or Knex migrations.
Ensure .migrorc is present and valid JSON.
Pad versions: '0.0.09', '0.0.10'.
Write exports.up = (db) => db.query('...') and exports.down = (db) => db.query('...').npm install pg
Start PostgreSQL or check .migrorc connection settings.
Ensure the version exists: migro create-version main 0.0.1, then create migration.
npm install -g migro
No dependency data recorded yet.