dlmcpaul / EnphaseCollector

Enphase Solar Metrics Collector
Mozilla Public License 2.0
69 stars 19 forks source link

H2 database upgrade to V2 #41

Closed dlmcpaul closed 1 year ago

dlmcpaul commented 1 year ago

H2 database used is V1.

To upgrade to later Spring boot versions then H2 needs to migrate to V2

There is no auto-upgrade. Database requires an export using V1 library and import using V2 library

dlmcpaul commented 1 year ago

Possibly build this as a script inside the docker images

https://blog.jvtrigueros.com/2022/03/01/migrate-h2-database/

dlmcpaul commented 1 year ago

Next docker release should upgrade database to V2. Those running as a jar may need to upgrade manually

dlmcpaul commented 1 year ago

Completed with latest version. Upgrade script in Dockerfile will autoupgrade. Those using the jar will need to manually upgrade. Follow the script in the Dockerfile for example