A simple database migration and versioning tool for Node.js, focusing on MySQL databases. Version 0.2.7 (stable, last updated 2015) works by maintaining change logs in the database and incrementally updating the database using user-supplied SQL change scripts. It supports init, migrate, backup, and restore commands via CLI. Only MySQL is supported currently, with planned support for other databases. Requires Node.js >= 4.0.0. Configuration files support YAML, JSON, and Node module formats. The tool is minimal and aimed at database-first development teams.
npm install node-baselineNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a MySQL database with baseline, create a migration script, and apply it.
Upgrade Node.js to version 4.0.0 or higher.
Use a different migration tool for non-MySQL databases (e.g., Knex, Sequelize).
If installed locally, run `npx baseline <command>`.
Consider using actively maintained migration tools like node-pg-migrate, Umzug, or Flyway.
Create a .baselinerc file (YAML/JSON/JS) in the working directory or use --config with a correct path.
Start MySQL server or update the configuration with correct host/port.
Add password field to the database configuration or provide correct credentials.