This repository has been archived by the owner on Jul 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Standalone Migration
Herdy Handoko edited this page Apr 3, 2017
·
1 revision
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 migrate
and an example using centralised configuration file:
java -jar \
-Dconfig.file=src/test/application.test.conf \
target/*-jar-with-dependencies.jar migrate
Refer 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.