A migration tool that combines Migra and Graphile Migrate to provide drift detection and migration generation for PostgreSQL databases. Current version 1.1.0-beta.7, pre-release. It wraps the Python-based Migra tool in a Docker container and integrates with Graphile Migrate's lifecycle hooks. Key differentiators: enables automatic drift fixing between shadow and local databases, and generates migration files based on ORM schema changes. Requires Docker to run Migra. Updated infrequently; beta status implies potential breaking changes.
npm install migraphileNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs migraphile, sets up environment variables, and runs CLI commands for drift detection and migration generation.
Update to use 'npx migraphile fix_drift' instead of calling a script.
Ensure Docker is installed and running before using migraphile.
Pin version and monitor releases for breaking changes.
Set both DATABASE_URL and APP_DATABASE_URL to the same value in .env.
Docker must be accessible; if running in CI, ensure Docker service is available.
Install Docker and start the Docker daemon.
Set DATABASE_URL in .env file or environment.
Set SHADOW_DATABASE_URL in .env file.