Fix: move enrichment nodes upgrade script to 3.5.1 version
This commit is contained in:
parent
bc18c81087
commit
c607589655
@ -247,17 +247,18 @@ public class ThingsboardInstallService {
|
||||
case "3.4.4":
|
||||
log.info("Upgrading ThingsBoard from version 3.4.4 to 3.5.0 ...");
|
||||
databaseEntitiesUpgradeService.upgradeDatabase("3.4.4");
|
||||
dataUpdateService.updateData("3.4.4");
|
||||
log.info("Updating system data...");
|
||||
systemDataLoaderService.updateSystemWidgets();
|
||||
if (!getEnv("SKIP_DEFAULT_NOTIFICATION_CONFIGS_CREATION", false)) {
|
||||
systemDataLoaderService.createDefaultNotificationConfigs();
|
||||
} else {
|
||||
log.info("Skipping default notification configs creation");
|
||||
}
|
||||
installScripts.loadSystemLwm2mResources();
|
||||
break;
|
||||
//TODO update CacheCleanupService on the next version upgrade
|
||||
case "3.5.0":
|
||||
log.info("Upgrading ThingsBoard from version 3.5.0 to 3.5.1 ...");
|
||||
log.info("Updating system data...");
|
||||
dataUpdateService.updateData("3.5.0");
|
||||
systemDataLoaderService.updateSystemWidgets();
|
||||
//TODO update CacheCleanupService on the next version upgrade
|
||||
default:
|
||||
throw new RuntimeException("Unable to upgrade ThingsBoard, unsupported fromVersion: " + upgradeFromVersion);
|
||||
|
||||
|
||||
@ -206,8 +206,8 @@ public class DefaultDataUpdateService implements DataUpdateService {
|
||||
log.info("Skipping edge events migration");
|
||||
}
|
||||
break;
|
||||
case "3.4.4":
|
||||
log.info("Updating data from version 3.4.4 to 3.5.0 ...");
|
||||
case "3.5.0":
|
||||
log.info("Updating data from version 3.5.0 to 3.5.1 ...");
|
||||
log.info("Starting enrichment rule nodes update ...");
|
||||
updateEnrichmentRuleNodes();
|
||||
log.info("Finished enrichment rule nodes update!");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user