documentation/Reference/Database Driver Reference/Cassandra Database.md
{% include database-boilerplate.html %}
| Item | Details |
|---|---|
| URL format | <code>jdbc:cassandra://<i>host</i>:<i>port</i>?localdatacenter=<i>datacenter1</i></code> |
| SSL support | Yes, add ;enablessl=true to URL |
| Ships with Flyway Command-line | Yes |
| Maven Central coordinates | com.ing.data:cassandra-jdbc-wrapper |
| Supported versions | 4.11.1 and later |
| Default Java class | com.ing.data.cassandra.jdbc.CassandraDriver |
Cassandra migrations typically have a .cql migration suffix, we recommend configuring flyway to pick these up using the sqlMigrationSuffixes Parameter.
You would specify this in your TOML configuration like this:
[flyway]
sqlMigrationSuffixes = [".cql"]
Flyway maps it's concept of schema onto a keyspace in Cassandra. You should specify a default schema to use as otherwise Flyway will default to system and you will have troubles working there (for example, clean won't be able to work correctly in the system keyspace).
This can be configured using one of the following parameters:
Our JDBC implementation for Cassandra comes from this Github project: Cassandra-jdbc-wrapper