Auto-generate Sequelize migration scripts from sequelize-typescript model decorators, similar to Django's makemigration. Current stable version 1.0.13. Scans models for changes and generates up/down functions, resolving issues with @Index decorators, missing sequelizemeta table, and underscore table options. Uses snapshot files instead of SequelizeMetaMigration table. Supports prettier formatting. Release cadence is irregular. Alternative to umzug with manual migration writing.
npm install sequelize-typescript-model-repository-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to generate a migration by scanning sequelize-typescript models.
Remove old SequelizeMetaMigration table and ensure snapshotDir is provided and consistent across runs.
Pass models array or path to Sequelize constructor before calling generateMigration.
Install with npm i -D sequelize-typescript-model-repository-migration, then import from 'sequelize-typescript-model-migration'.
Consider using umzug with manual migrations or other tools if reliability is critical.
Ensure Sequelize constructor includes models option (array or path) that contains the target model.
Install the correct package: npm i -D sequelize-typescript-model-repository-migration
Use import { generateMigration } from 'sequelize-typescript-model-migration' instead of require.