File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/fr/univlorraine/ecandidat/config Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ public class JpaConfigEcandidat {
82
82
@ Value ("${datasource.ecandidat.properties.test-query:}" )
83
83
private transient String connectionTestQuery ;
84
84
85
+ @ Value ("${load.balancing.gestionnaire.mode:true}" )
86
+ private transient Boolean gestionnaireMode ;
87
+
85
88
/**
86
89
* @return Source de données
87
90
*/
@@ -129,6 +132,10 @@ public DataSource dataSourceEcandidat() {
129
132
* @param ds
130
133
*/
131
134
private void initFlyway (final DataSource ds ) {
135
+ if (!gestionnaireMode ) {
136
+ logger .info ("Database analysis canceled in candidat mode" );
137
+ return ;
138
+ }
132
139
try {
133
140
logger .info ("Database analysis: in progress..." );
134
141
final Flyway flyway = new Flyway ();
You can’t perform that action at this time.
0 commit comments