Commit af8c0bbe395be8bfc52af8bfdd68b364f4a1d87b
1 parent
4238437b
Add missing upgrade to 2.1.1 for cassandra DB
Showing
1 changed file
with
8 additions
and
0 deletions
@@ -203,6 +203,14 @@ public class CassandraDatabaseUpgradeService implements DatabaseUpgradeService { | @@ -203,6 +203,14 @@ public class CassandraDatabaseUpgradeService implements DatabaseUpgradeService { | ||
203 | log.info("Schema updated."); | 203 | log.info("Schema updated."); |
204 | 204 | ||
205 | break; | 205 | break; |
206 | + case "2.0.0": | ||
207 | + | ||
208 | + log.info("Updating schema ..."); | ||
209 | + schemaUpdateFile = Paths.get(installScripts.getDataDir(), "upgrade", "2.1.1", SCHEMA_UPDATE_CQL); | ||
210 | + loadCql(schemaUpdateFile); | ||
211 | + log.info("Schema updated."); | ||
212 | + | ||
213 | + break; | ||
206 | default: | 214 | default: |
207 | throw new RuntimeException("Unable to upgrade Cassandra database, unsupported fromVersion: " + fromVersion); | 215 | throw new RuntimeException("Unable to upgrade Cassandra database, unsupported fromVersion: " + fromVersion); |
208 | } | 216 | } |