A module for detecting differences between database states and migration files, designed to work with db-migrate. Version 0.3.5 (latest) provides CLI tools to compare applied migrations against pending ones, helping identify missing migrations or drift. It supports multiple reporters (default, ghost) and environments (dev, production). Unlike db-migrate's built-in diff, it offers explicit detection and reporting. Release cadence is low; no updates since 2017.
npm install db-migrate-diffNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and run db-migrate-diff with various options, including environment and reporter flags.
Use db-migrate with MySQL or ensure your database is MySQL-compatible.
Use --config flag to specify the exact path to database.json.
Test with your db-migrate version; consider forking or using db-migrate's built-in diff if available.
Run 'npm install db-migrate --save-dev' to install db-migrate as a dependency.
Create a database.json file in your project root or use the --config flag to specify its path.
Ensure MySQL is running and accessible; check the host in database.json.