A minimal CLI tool to generate timestamped database migration files for Node.js projects. Version 2.2.0 is the latest stable release, with infrequent updates and no major release cadence. It creates skeleton migration files with a timestamp prefix, intended for use with raw SQL or custom database adapters. Unlike full-featured migration frameworks (e.g., Knex or Sequelize), g-migration is intentionally simple: it only generates file names and basic boilerplate, leaving migration logic entirely to the user. No database driver or ORM is required.
npm install g-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the CLI, create migrations directory, and generate a timestamped migration file.
Write your own migration SQL/logic inside the generated files.
Use './node_modules/.bin/g_migration' in npm scripts.
Manually rename or move files after generation.
Consider using alternatives like node-pg-migrate or umzug.
Use './node_modules/.bin/g_migration' or add it to npm scripts.
Use it as a CLI tool via npm scripts; no API exists.
Run 'mkdir -p ./db/migrations' before generating.
No dependency data recorded yet.