A migration tool for RethinkDB, forked from rethink-migrate. Version 1.6.2, actively maintained by Parabol. Allows forward and backward migrations of structural or data changes with versioning. Supports both `rethinkdb` and `rethinkdbdash` drivers. Migration files are JavaScript modules with `up` and `down` exports. Configuration via `database.json` or environment variables. Key differentiator: more active maintenance than the original fork, supports `--root` and `--logLevel` options.
npm install migrate-rethinkdbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs migrate-rethinkdb globally, installs rethinkdb driver, creates a database.json config, generates a migration scaffold, edits it to create/drop a table, and runs all pending migrations.
Run `npm install --save rethinkdb` (or rethinkdbdash) in your project before using migrate-rethinkdb.
Ensure `database.json` exists in the root of your project or use `migrate-rethinkdb up --root ./path`.
Use `--one` flag to run a single migration instead of all: `migrate-rethinkdb up --one`.
Always define both `exports.up` and `exports.down` with functions that return a promise.
Run `npm install --save rethinkdb` (or retinkdbdash) in your project.
Create a database.json file with your RethinkDB connection details.
Run `npm install -g migrate-rethinkdb` or use `npx migrate-rethinkdb`.