LoopBack 4 component for managing database migration tasks with versioning. Current stable version is 1.3.0, released under MIT license. It provides a common interface for custom migration scripts, automatically discovers and executes migrations based on application version from package.json, and supports both upgrades and downgrades. Key differentiators: integrates seamlessly with LoopBack 4 BootMixin and RepositoryMixin, uses peer dependencies from @loopback ecosystem, and offers automatic script discovery via naming convention or decorators. Release cadence is not specified.
npm install loopback4-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up a LoopBack 4 application with BootMixin, RepositoryMixin, and MigrationComponent.
Ensure each script class name is unique.
Implement down() method only if technically possible and always back up the database before upgrades.
Check LoopBack 4 changelog for migration guidance.
Run npm install @loopback/boot
Ensure application class extends BootMixin(RepositoryMixin(RestApplication))