upgrade from version 2.4.2

This commit is contained in:
Igor Kulikov 2019-12-23 17:46:48 +02:00
parent 664edfd178
commit 7bdbdad287
3 changed files with 5 additions and 5 deletions

View File

@ -123,10 +123,10 @@ public class ThingsboardInstallService {
log.info("Upgrading ThingsBoard from version 2.4.1 to 2.4.2 ..."); log.info("Upgrading ThingsBoard from version 2.4.1 to 2.4.2 ...");
databaseUpgradeService.upgradeDatabase("2.4.1"); databaseUpgradeService.upgradeDatabase("2.4.1");
case "2.4.2.1": case "2.4.2":
log.info("Upgrading ThingsBoard from version 2.4.2.1 to 2.4.3 ..."); log.info("Upgrading ThingsBoard from version 2.4.2 to 2.4.3 ...");
databaseUpgradeService.upgradeDatabase("2.4.2.1"); databaseUpgradeService.upgradeDatabase("2.4.2");
log.info("Updating system data..."); log.info("Updating system data...");

View File

@ -278,7 +278,7 @@ public class CassandraDatabaseUpgradeService implements DatabaseUpgradeService {
} catch (InvalidQueryException e) {} } catch (InvalidQueryException e) {}
log.info("Schema updated."); log.info("Schema updated.");
break; break;
case "2.4.2.1": case "2.4.2":
log.info("Updating schema ..."); log.info("Updating schema ...");
String updateAlarmTableStmt = "alter table alarm add propagate_relation_types text"; String updateAlarmTableStmt = "alter table alarm add propagate_relation_types text";
try { try {

View File

@ -196,7 +196,7 @@ public class SqlDatabaseUpgradeService implements DatabaseUpgradeService {
log.info("Schema updated."); log.info("Schema updated.");
} }
break; break;
case "2.4.2.1": case "2.4.2":
try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) { try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) {
log.info("Updating schema ..."); log.info("Updating schema ...");
try { try {