Simple schema migration tool for Apache Cassandra, version 3.0.0. It migrates the Cassandra schema by executing CQL files with a naming convention in a specified directory. The tool requires Node.js >=0.10 and uses the cassandra-driver for connection. It supports configuration via JSON files, optional authentication, and WhiteListPolicy for single-node migration. Unlike other migration tools, it is lightweight and focuses on CQL file execution with version-based ordering. The project is looking for a new maintainer and has a low release cadence.
npm install cassandra-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Migrates Cassandra schema using CQL files in migrationsDir. Uses cassandra-driver config and passes a JSON object.
Switch to import syntax or use dynamic import with await/import() in CommonJS.
Add `datacenterName` to configuration when `useSingleNode: true`.
Remove `quiet` from config; implement custom logging via event listeners.
Manually create your keyspace (e.g., via cqlsh) before applying migrations.
Use `\n---\n` between statements. Avoid trailing spaces around the delimiter.
Run `npm install cassandra-migration` and check package.json dependencies.
Use `import cassandraMigration from 'cassandra-migration'` or `const m = await import('cassandra-migration')`.Verify the migrations directory exists and the path is absolute or relative to process.cwd().
Connect to Cassandra and create the keyspace manually (e.g., `CREATE KEYSPACE my_keyspace WITH REPLICATION = ...`).