Naïve PostgreSQL migrations library for Node.js (v0.6.5, alpha). Focuses on fast iteration with SQL-only forward migrations, a watcher mode, and transaction safety. Inspired by Graphile Migrate but simpler: no down migrations, no ORM integration. Only supports Postgres and forward-only idempotent SQL. Release cadence is irregular. Distinguishes itself by prioritizing a native SQL workflow and instant feedback via file watcher.
npm install migramiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize migrami with connection string and run the migrate command programmatically.
Test thoroughly or consider alternative migration tools like node-pg-migrate or graphile-migrate.
Use import syntax or upgrade to a newer version that supports both (currently ESM-only).
Write idempotent SQL (e.g., IF NOT EXISTS) to allow re-running.
Use 'down' only for metadata removal; manually revert SQL if needed.
Add "type": "module" to package.json or rename file to .mjs.
Run npm install migrami and ensure import path is 'migrami'.
Use import migrami from 'migrami'.