2016-02-25 17:59:46 +01:00
|
|
|
# hawkBit Migration Guides
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2016-02-25 17:59:46 +01:00
|
|
|
## Release 0.2
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2016-02-25 17:59:46 +01:00
|
|
|
### Configuration Property changes
|
2022-01-31 11:40:39 +01:00
|
|
|
|
|
|
|
|
- `hawkbit.server.controller._` have changed to `hawkbit.server.ddi._`
|
|
|
|
|
- `info.build._` have changed to `hawkbit.server.build._`
|
|
|
|
|
- `hawkbit.server.demo._` have changed to `hawkbit.server.ui.demo._`
|
|
|
|
|
- `hawkbit.server.email.support` has changed to `hawkbit.server.ui.links.support`
|
|
|
|
|
- `hawkbit.server.email.request.account` has changed to `hawkbit.server.ui.links.requestAccount`
|
|
|
|
|
- `hawkbit.server.im.login.url` has changed to `hawkbit.server.ui.links.userManagement`
|
2016-03-23 16:12:56 +01:00
|
|
|
|
|
|
|
|
### REST API model changes for clients
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
- ENTITYPagedList classes have been removed; generic `PagedList` used instead (e.g. `PagedList<TargetRest>` instead
|
|
|
|
|
of `TargetPagedList`).
|
|
|
|
|
- ENTITYsrest classes have been removed; `List<ENTITYrest>` used instead (e.g. `List<TargetRest>` instead
|
|
|
|
|
of `TargetsRest`)
|
2016-05-18 15:24:28 +02:00
|
|
|
|
|
|
|
|
### Renamed api annotations
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
- Annotation `org.eclipse.hawkbit.rest.resource.EnableRestResources` has changed
|
|
|
|
|
to `org.eclipse.hawkbit.mgmt.annotation.EnableMgmtApi`
|
|
|
|
|
- Annotation `org.eclipse.hawkbit.ddi.resource.EnableDirectDeviceApi` has changed
|
|
|
|
|
to `org.eclipse.hawkbit.ddi.annotation.EnableDdiApi`
|
2016-05-18 15:24:28 +02:00
|
|
|
|
|
|
|
|
### Renamed maven modules
|
2022-01-31 11:40:39 +01:00
|
|
|
|
|
|
|
|
- Module `hawkbit-mgmt-api-client` has changed to `hawkbit-example-mgmt-simulator`
|
2019-09-17 14:20:26 +02:00
|
|
|
|
|
|
|
|
## Milestone 0.3.0M6
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2019-09-17 14:20:26 +02:00
|
|
|
### Configuration Property changes
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
- `hawkbit.server.security.dos.maxTargetsPerManualAssignment` has changed
|
|
|
|
|
to `hawkbit.server.security.dos.maxTargetDistributionSetAssignmentsPerManualAssignment`
|
2022-01-31 11:40:39 +01:00
|
|
|
|
|
|
|
|
## Milestone 0.3.0M7
|
|
|
|
|
|
|
|
|
|
### Configuration Property changes
|
|
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
- Due to Spring Boot version upgrade (
|
|
|
|
|
see [spring boot 2.2 deprecations](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.2-Release-Notes#deprecations-in-spring-boot-22)) `server.use-forward-headers`
|
|
|
|
|
has changed to `server.forward-headers-strategy`
|
2021-02-10 17:06:50 +01:00
|
|
|
|
|
|
|
|
## Upgrade from Master Branch (after 0.3.0M6) to 0.3.0M7
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
Due to changes in the DB migration scripts within PR [#1017](https://github.com/eclipse-hawkbit/hawkbit/pull/1017) the
|
|
|
|
|
Hawkbit will not start up if one of the following cases is true:
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2021-02-10 17:06:50 +01:00
|
|
|
- DB2 database is used
|
2022-01-31 11:40:39 +01:00
|
|
|
- MSSQL database is used and the `sp_action` table is not empty
|
|
|
|
|
- PostgreSql database is used and the `sp_action` table is not empty
|
2021-02-10 17:06:50 +01:00
|
|
|
|
2024-10-04 10:21:03 +03:00
|
|
|
The script was fixed with PR [#1061](https://github.com/eclipse-hawkbit/hawkbit/pull/1061).
|
2021-02-10 17:06:50 +01:00
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
In case you upgrade from 0.3.0M6 to 0.3.0M7 there is no issue. But if you have built the Hawkbit from the master branch
|
|
|
|
|
between PR [#1017](https://github.com/eclipse-hawkbit/hawkbit/pull/1017) and
|
|
|
|
|
PR [#1061](https://github.com/eclipse-hawkbit/hawkbit/pull/1061), use PostgreSQL or MSSQL and upgrade to 0.3.0M7, it
|
|
|
|
|
will fail at startup with the message: `Validate failed: Migration checksum mismatch for migration version 1.12.16`
|
2021-02-10 17:06:50 +01:00
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
This can be fixed by adapting the schema_version table of the database. The checksum field of the entry with the version
|
|
|
|
|
1.12.16 has to be changed (mind the minus):
|
2022-01-31 11:40:39 +01:00
|
|
|
|
2021-02-10 17:06:50 +01:00
|
|
|
- -1684307461 for MSSQL
|
|
|
|
|
- -596342656 for PostgreSql
|
|
|
|
|
|
|
|
|
|
Example for MSSQL: `UPDATE schema_version SET checksum=-1684307461 WHERE version='1.12.16'`
|