A CLI and programmatic migration tool for Sequelize, version 1.2.2 (last released in 2015). Provides a standardized wrapper around Sequelize's migration functionality, supporting both up and down migrations. Unlike Sequelize's built-in migration CLI, this package requires explicit persistence initialization and a config object. No active maintenance; consider using Sequelize's official CLI or Umzug instead.
npm install sequelize-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows programmatic usage: create Sequelize instance, define persistence object, then call migrate() to run all pending migrations.
Run from the migrations directory or provide full path with -p
Use Sequelize CLI or Umzug for modern Sequelize versions
Wrap in a Promise: new Promise((resolve, reject) => migrate(..., (err) => err ? reject(err) : resolve()))
npm install sequelize-migrate --save
Ensure persistence object has an initialise function: { initialise: (cb) => cb(null), sequelise: sequelize }Use require or set up bundler to handle CJS: const migrate = require('sequelize-migrate');