RethinkDB migration tool providing up/down migrations with checksum verification to prevent altered migration files. Version 0.1.9 is the latest stable release, with no fixed release cadence. Ships TypeScript types. Key differentiator: it integrates directly with RethinkDB, manages a `miracle-migrations` table for tracking, and supports both CLI and programmatic use via `doUp`/`doDown`. Compared to other RethinkDB migration tools like `rethink-migrate`, it offers the uniqueness of checksumming and config-driven setup.
npm install miracle-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to programmatically run migrations using doUp with a custom connection and optional filename.
Use `npx miracle-migrate create-migration <name>` to generate properly structured migration files.
Use a naming convention with ISO 8601-like timestamps or sequential numbers.
For programmatic usage, you don't need config file; pass connection options directly.
Before running migrations, check if the `miracle-migrations` table exists and is compatible. You may need to drop or back it up.
Consider alternatives like `rethink-migrate` or migration scripts using the RethinkDB driver directly.
Run `npm install miracle-migrate` or `yarn add miracle-migrate`.
Use `import { doUp } from 'miracle-migrate';` instead of `import doUp from 'miracle-migrate';`.Create a `miracle-migrate.json` file with migration directory and connection settings, or use programmatic API.
Drop the existing `miracle-migrations` table manually using the RethinkDB admin console or a script, then retry.