musafa is a simple NodeJS migration tool for PostgreSQL. Version 1.0.6 is the latest stable release. It provides a CLI to manage SQL migrations stored in a directory, with commands to migrate up, up all, down, down all, and show status. It uses a configuration file (.musafarc) for credentials and migration settings. It is minimal, without programmatic API, and designed for simple workflows compared to more complex tools like Knex or Flyway.
npm install musafaNo compatibility data collected yet for this library.
Install musafa globally, initialize config, create a migration file, and apply it.
Ensure you run musafa commands from the directory containing .musafarc.
Write raw SQL in .sql files with prefixes like 001_, 002_, etc.
Use upall for forward only; manual SQL fixes for rollback.
Navigate to the directory containing .musafarc or run `musafa init` to create one.
Run `musafa up` first to create the table.
No dependency data recorded yet.