As you know, currently if you are using spring boot version of Camunda, when application is started it creates all user tables. It’s brilliant. Is there a way that we can run custom scripts after Base scripts are run.
Use case: After DB is created, we want to automatically create an admin user and other test groups avoiding manual intervention.
May be Liquibase & ApplicationReadyEvent with below code?
JdbcConnection liquibaseConnection = new JdbcConnection(connection);
Liquibase liquibase = new Liquibase("liquibase/db.changelog-master.xml", new ClassLoaderResourceAccessor(),
liquibaseConnection);
liquibase.update("");