Simplify upgrage procedure
This commit is contained in:
parent
8311017b92
commit
138c0e4f8f
@ -256,17 +256,16 @@ public class ThingsboardInstallService {
|
|||||||
}
|
}
|
||||||
case "3.5.0":
|
case "3.5.0":
|
||||||
log.info("Upgrading ThingsBoard from version 3.5.0 to 3.5.1 ...");
|
log.info("Upgrading ThingsBoard from version 3.5.0 to 3.5.1 ...");
|
||||||
|
//TODO DON'T FORGET to update switch statement in the CacheCleanupService if you need to clear the cache
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw new RuntimeException("Unable to upgrade ThingsBoard, unsupported fromVersion: " + upgradeFromVersion);
|
||||||
|
}
|
||||||
entityDatabaseSchemaService.createOrUpdateViewsAndFunctions();
|
entityDatabaseSchemaService.createOrUpdateViewsAndFunctions();
|
||||||
entityDatabaseSchemaService.createOrUpdateDeviceInfoView(persistToTelemetry);
|
entityDatabaseSchemaService.createOrUpdateDeviceInfoView(persistToTelemetry);
|
||||||
log.info("Updating system data...");
|
log.info("Updating system data...");
|
||||||
systemDataLoaderService.updateSystemWidgets();
|
systemDataLoaderService.updateSystemWidgets();
|
||||||
installScripts.loadSystemLwm2mResources();
|
installScripts.loadSystemLwm2mResources();
|
||||||
break;
|
|
||||||
//TODO update CacheCleanupService on the next version upgrade
|
|
||||||
default:
|
|
||||||
throw new RuntimeException("Unable to upgrade ThingsBoard, unsupported fromVersion: " + upgradeFromVersion);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
log.info("Upgrade finished successfully!");
|
log.info("Upgrade finished successfully!");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user