Add option to provide flyway callbacks to db init (#2764)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-10-20 14:00:48 +03:00
committed by GitHub
parent f2ddbcc230
commit 66da13a038
3 changed files with 49 additions and 13 deletions

View File

@@ -16,6 +16,9 @@ import org.springframework.context.annotation.PropertySource;
/**
* hawkBit Flyway autoconfiguration loading the flyway defaults properties.
* <p/>
* Used when this module is packed in a spring boot application in order to migrate the hawkbit jpa database schema at runtime.
* Another option will be to use hawkbit-repository-jpa-init module to migrate the database schema before hawkbit is started.
*/
@Configuration
@PropertySource("classpath:/hawkbit-jpa-flyway-defaults.properties")