Fix Cassandra DB upgrade.
This commit is contained in:
parent
626063dfb5
commit
99dde0cf69
@ -203,6 +203,16 @@ public class CassandraDatabaseUpgradeService implements DatabaseUpgradeService {
|
|||||||
log.info("Schema updated.");
|
log.info("Schema updated.");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "2.0.0":
|
||||||
|
|
||||||
|
log.info("Updating schema ...");
|
||||||
|
schemaUpdateFile = Paths.get(installScripts.getDataDir(), "upgrade", "2.1.1", SCHEMA_UPDATE_CQL);
|
||||||
|
loadCql(schemaUpdateFile);
|
||||||
|
log.info("Schema updated.");
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new RuntimeException("Unable to upgrade Cassandra database, unsupported fromVersion: " + fromVersion);
|
throw new RuntimeException("Unable to upgrade Cassandra database, unsupported fromVersion: " + fromVersion);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user