A Strapi generator that creates and runs Knex-based migration files for Strapi applications. Current stable version is 2.0.0. It provides CLI commands to scaffold new migrations and execute them against a Strapi database connection. Different from direct Knex usage, it integrates with Strapi's lifecycle and configuration, making it easier to manage database schema changes within Strapi projects. Release cadence is irregular; last major update was in 2020. Key differentiator: seamless integration with Strapi's API and CLI, supporting multiple database connections.
npm install strapi-generate-migrationsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to generate and run migration files using the strapi CLI.
Review migration file names; they now follow YYYYMMDDHHMMSS_<name>.js pattern.
Consider migrating to Strapi v4's native migration system.
Verify connection name in Strapi config before running commands.
npm install strapi-generate-migrations --save-dev
Check config/environments/*/database.json for valid connection names.
Create a `migrations` folder or specify custom path in generator options.