-
Couldn't load subscription status.
- Fork 22
Standalone Migration
cassandra-migration supports running standalone migrations by invoking the uber-jar. It is available on Maven Central or from the Releases page.
Logging level can be set by passing the following arguments:
-
INFO: This is the default -
DEBUG:-X -
WARNING:-q
Configuration can be set by passing in system properties JVM arguments, or by using a centralised configuration file. Refer to the Configuration / Options page for more information.
Example using system properties JVM arguments:
java -jar \
-Dcassandra.migration.scripts.locations=filesystem:target/test-classes/migration/integ \
-Dcassandra.migration.table.prefix=another_app_ \
-Dcassandra.migration.cluster.contactpoints=localhost \
-Dcassandra.migration.cluster.port=9147 \
-Dcassandra.migration.cluster.username=cassandra \
-Dcassandra.migration.cluster.password=cassandra \
-Dcassandra.migration.keyspace.name=cassandra_migration_test \
-Dcassandra.migration.keyspace.consistency=QUORUM \
target/*-jar-with-dependencies.jar migrateand an example using centralised configuration file:
java -jar \
-Dconfig.file=src/test/application.test.conf \
target/*-jar-with-dependencies.jar migrateRefer to reference.conf to examine the reference configuration, or application.test.conf or application.it-test.conf for an example usage within the test context.