Using a Simplified Development Process
There are multiple cases where the migration of scenarios is not required:
-
during development phases,
-
when the targeted application relies on scenarios as volatile/short term data that does not need to be kept on the long term.
In those cases, developers may launch ./gradlew generateJPAForce after each model change and keep the "all in one" migration script.
In that case, to properly boot the application, the Data Service database must be emptied. A way to achieve this can be to delete the corresponding Docker volumes.
Warning: Since Keycloak and the Data Service share the same database engine, deleting the volumes will delete the Keycloak configurations. For more details on how to save and restore this configuration, please refer to Section Importing and Exporting User Data.