Skip to content

Commit

Permalink
ne permet plus aux appli candidat de faire les migrations flyway
Browse files Browse the repository at this point in the history
  • Loading branch information
khergalant committed Sep 11, 2024
1 parent d9fa6a4 commit d5133cd
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ public class JpaConfigEcandidat {
@Value("${datasource.ecandidat.properties.test-query:}")
private transient String connectionTestQuery;

@Value("${load.balancing.gestionnaire.mode:true}")
private transient Boolean gestionnaireMode;

/**
* @return Source de données
*/
Expand Down Expand Up @@ -129,6 +132,10 @@ public DataSource dataSourceEcandidat() {
* @param ds
*/
private void initFlyway(final DataSource ds) {
if (!gestionnaireMode) {
logger.info("Database analysis canceled in candidat mode");
return;
}
try {
logger.info("Database analysis: in progress...");
final Flyway flyway = new Flyway();
Expand Down

0 comments on commit d5133cd

Please sign in to comment.