A command-line tool (v0.2.0) for generating Sequelize migration files automatically by comparing current model definitions with existing schemas. Supports createTable, removeTable, addColumn, modifyColumn, and removeColumn migrations. Currently in active development with a pre-release version (<1.0.0), not recommended for production. Differentiators: contrasts with sequelize-cli's manual migration creation by auto-generating migration code from model changes. Requires Node >=16 and works alongside sequelize-cli.
npm install sequelize-mig-generatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows setup: initialize sequelize-cli, install tool, create script, and run migration generation based on models.
Wait for stable release or use other tools like sequelize-auto in production.
Ensure -s points to file that default exports a function returning sequelize instance.
Use -e .ts flag to specify TypeScript extension, but ensure project supports running TypeScript migrations.
Explicitly provide paths via -s and -m options to avoid dependency on sequelize-cli configuration.
Ensure Node >=16 and reinstall with npm i sequelize-mig-generator --save-dev
Use -s ./path/to/models/init.js pointing to file that exports a function returning sequelize instance
Create .sequelizerc file or provide all paths explicitly via -s and -m options