A lightweight database migration tool for regenerating database schemas. Version 1.0.0 is the initial stable release. Designed for simplicity, it focuses on executing up/down migrations via configuration files. Key differentiators include zero dependencies and a flat learning curve compared to tools like Knex or TypeORM. Release cadence is ad-hoc.
npm install migration-toolsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the migrate function with a database connection string and migrations directory.
Use import syntax and ensure your project is set to ES modules.
Create the database manually before running migrations.
Rename 'schemaTable' to 'migrationsTable' in your config.
Use .sql files for migration scripts.
Use import { migrate } from 'migration-tools' and set type: module in package.json.Use an absolute path or path.resolve(__dirname, './migrations').
Ensure the migrationsTable is correctly configured or run the initial table creation first (e.g., with a SQL script).
No dependency data recorded yet.