Skip to content

Commit

Permalink
ThingsboardInstallService - move edge upgrade out of switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-babak committed Jun 19, 2024
1 parent 52b083d commit e0a4310
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,17 @@ public void performInstall() {
systemDataLoaderService.updateDefaultNotificationConfigs(false);
systemDataLoaderService.updateSecuritySettings();
//TODO DON'T FORGET to update switch statement in the CacheCleanupService if you need to clear the cache
case "edge": // leave this after latest case version
// reset full sync required - to upload the latest widgets from cloud
// tenantsFullSyncRequiredUpdater and fixDuplicateSystemWidgetsBundles moved to 'edge' version
dataUpdateService.updateData("edge");
break;
default:
throw new RuntimeException("Unable to upgrade ThingsBoard Edge, unsupported fromVersion: " + upgradeFromVersion);
}
entityDatabaseSchemaService.createOrUpdateViewsAndFunctions();
entityDatabaseSchemaService.createOrUpdateDeviceInfoView(persistToTelemetry);

// reset full sync required - to upload the latest widgets from cloud
// tenantsFullSyncRequiredUpdater and fixDuplicateSystemWidgetsBundles moved to 'edge' version
dataUpdateService.updateData("edge");

log.info("Updating system data...");
// dataUpdateService.upgradeRuleNodes();
systemDataLoaderService.loadSystemWidgets();
Expand Down

0 comments on commit e0a4310

Please sign in to comment.