mygrate is a SQL-based database migration tool for MySQL, PostgreSQL, and SQL Server that uses plain SQL files for up/down migrations. Version 0.5.7 (latest) supports migration scripts runnable by DBAs, with environment-based configurations (development/test) and commands like init, new, up, down, and last. It focuses on simplicity and DBA-friendly workflows, differentiating from ORM-based tools by relying on raw SQL and providing a config.js for database connection settings. Release cadence is low; no major version changes recently.
npm install mygrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize mygrate with PostgreSQL config and run all pending migrations up.
Use import syntax or dynamic import().
Place config.js in migrations/ directory.
npm install mysql pg mssql.
npm install mysql pg mssql
Change to import mygrate from 'mygrate'
Change port in config or stop the other service.