Sequelize Make Migration (sequelizemm) is a CLI tool for generating Sequelize migration files interactively. Version 1.3.0 supports Sequelize v6 & v7, ESM and CJS, and automatically creates up/down migrations with constraints and transaction support. It uses a schema.json file to track model changes. Unlike manual migration creation, it provides an interactive prompt and synchronizes database schema with current models. Released under MIT license.
npm install sequelizemmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up the required sequelize.js file and run the CLI to generate a migration.
Ensure your sequelize.js exports like: module.exports = { sequelize: sequelize } or use custom file/name via --file and --name.Do not delete schema.json manually; let the tool manage it.
Upgrade your project to Sequelize v6 or v7, or use an older version of sequelizemm.
Run the command from your project root or specify the full path with --file.
Update imports to use 'sequelizemm' directly.
Run 'npm install sequelize' in your project.
Create a sequelize.js file that exports a Sequelize instance, or use --file and --name flags.
Ensure the sequelize instance is properly created with new Sequelize() and you are using a supported version (v6 or v7).
Create a 'migrations' folder in your project root, or configure migrations path in Sequelize.