File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/main/java/de/presti/ree6/sql Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -113,16 +113,16 @@ public void runMigrations() {
113113 Arrays .stream (migrationInfo ).map (MigrationInfo ::getDescription ).toArray (String []::new )));
114114
115115 log .info ("Running Flyway Migrations." );
116- } else {
117- log .info ("No pending migrations found." );
118- }
119116
120- MigrateResult result = flyway .migrate ();
117+ MigrateResult result = flyway .migrate ();
121118
122- if (result .success ) {
123- log .info ("Flyway Migrations were successful." );
119+ if (result .success ) {
120+ log .info ("Flyway Migrations were successful." );
121+ } else {
122+ log .error ("Flyway Migrations were unsuccessful." );
123+ }
124124 } else {
125- log .error ( "Flyway Migrations were unsuccessful ." );
125+ log .info ( "No pending migrations found ." );
126126 }
127127 } catch (Exception exception ) {
128128 log .error ("Migration failed!" , exception );
You can’t perform that action at this time.
0 commit comments