patka / cassandra-migration

Schema migration library for Cassandra
MIT License
152 stars 47 forks source link

Add spring properties for keyspace strategy and replications #68

Closed rbleuse closed 2 years ago

rbleuse commented 2 years ago

This PR allows to set Spring properties in order to create a keyspace if needed with :

Expected properties :

Simple

cassandra:
  migration:
    script-location: db/migration
    execution-profile-name: migration
    with-consensus: false
    consistency-level: ONE
    keyspace-name: simple_keyspace
    simple-strategy: 2

Network

cassandra:
  migration:
    script-location: db/migration
    execution-profile-name: migration
    with-consensus: true
    consistency-level: QUORUM
    keyspace-name: network_keyspace
    network-strategy:
      replications:
        boston: 2
        tokyo: 3
rbleuse commented 2 years ago

Current branch is merged with master