data-migration v2.17.0 provides interfaces and utilities for creating database migration drivers and processors. It includes SQL file support for up/down scripts, TypeScript types, and integrates with Lerna for monorepo management. Released under ISC license, it is actively maintained on GitHub with a weekly download rate. Differentiators include a simple API for custom drivers and built-in SQL task abstraction.
npm install data-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a migration script using SqlFile task with up/down SQL files.
Use correct import path: import { SqlFile } from 'data-migration/lib/tasks/sql'Use SqlFile task with file paths or inline SQL strings.
Check driver documentation for correct name.
Use import { SqlFile } from 'data-migration/lib/tasks/sql'Ensure correct import: import { SqlFile } from 'data-migration/lib/tasks/sql'Use SqlFile task with upFile and downFile.