Skip to content

Commit

Permalink
Fix: Keyspaces dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam committed Jul 2, 2021
1 parent 5bbb11e commit 69bd667
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/uci/dao/config/CassandraConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected int getPort() {

@Override
public SchemaAction getSchemaAction() {
return SchemaAction.RECREATE;
return SchemaAction.NONE;
}

@Override
Expand All @@ -57,7 +57,8 @@ public String[] getEntityBasePackages() {
@Override
protected List<CreateKeyspaceSpecification> getKeyspaceCreations() {
final CreateKeyspaceSpecification specification =
CreateKeyspaceSpecification.createKeyspace(keyspace)
CreateKeyspaceSpecification
.createKeyspace(keyspace)
.ifNotExists()
.with(KeyspaceOption.DURABLE_WRITES, true)
.withSimpleReplication();
Expand Down

0 comments on commit 69bd667

Please sign in to comment.