A database migration framework for LoopBack projects, version 0.4.0. It provides simple up/down migration support, storing run migrations in a 'Migrations' table. Migrations are defined as modules with up/down functions receiving the app and a callback. The component reads LoopBack datasources configuration and supports raw SQL via the connector. Its key differentiator is tight integration with LoopBack's model and datasource system, unlike general migration tools like db-migrate. It exposes a REST API optionally and allows custom migration directories and ACLs. The package is maintained by fullcube with limited recent activity.
npm install loopback-component-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install, configure, create a migration script, and run migrations using the Migrate model.
Access app.models.Migrate inside a boot script or after `app.start()` callback.
Ensure each migration calls the next callback with an error or null.
Use loopback4-migration or another LoopBack 4 compatible migration tool.
Run `npm install --save loopback-component-migrate` and ensure it is configured via component-config.json, not required directly.
Ensure that `loopback-component-migrate` is configured in component-config.json and that the app has booted before accessing app.models.Migrate.