Simple MySQL migration utility for Node.js (v0.2.1, last updated 2014). Provides basic migration framework using plain SQL files with flyway-style naming (V1__description.sql). Each migration file supports only a single SQL statement by default; multiple statements require `multipleStatements: true` in connection config. No rollback support, no programmatic API, minimal error handling. Last release over a decade ago, recommended for legacy projects only.
npm install node-mysql-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize connection, run migrations from ./migrations folder with multi-statement support enabled.
Set `multipleStatements: true` in mysql.createConnection() or split into separate migration files.
Manually reverse migrations or handle externally.
Use an actively maintained alternative like `db-migrate` or `knex`.
Add `multipleStatements: true` to your mysql connection config, or split into separate files.
Use `const migration = require('node-mysql-migration');`