Simple, no-frills database migration utility for Node.js. Version 2.3.0, stable, with low release cadence. Provides CLI commands for up, down, create, list, executed, log, unlog, and tidy migrations. Supports plugin adapter architecture for persisting migration state (built-in fs adapter). Lightweight alternative to node-migrate or db-migrate, with optional async (callback/promise) migration scripts. Lacks built-in database-specific adapters; requires custom adapters for most databases.
npm install immigrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a migration file with up/down functions, and running/rolling back migrations via CLI.
Use child_process.exec to invoke CLI from Node.js, or consider migration libraries with programmatic API.
Ensure --use flag points to an adapter package, or rely on default built-in fs adapter.
Specify a custom adapter via --use flag, e.g., --use ./my-adapter.js
Use timestamps or sequential numbers in filenames (e.g., 01-add-users.js).
Use 'immigration up' or 'immigration down' instead of 'migrate'.
Provide a valid adapter: e.g., --use immigration/fs or a custom adapter module.
Adapter should require 'immigration/fs' (the built-in) or be self-contained; do not rely on internal paths.
No dependency data recorded yet.