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() {
113
113
Arrays .stream (migrationInfo ).map (MigrationInfo ::getDescription ).toArray (String []::new )));
114
114
115
115
log .info ("Running Flyway Migrations." );
116
- } else {
117
- log .info ("No pending migrations found." );
118
- }
119
116
120
- MigrateResult result = flyway .migrate ();
117
+ MigrateResult result = flyway .migrate ();
121
118
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
+ }
124
124
} else {
125
- log .error ( "Flyway Migrations were unsuccessful ." );
125
+ log .info ( "No pending migrations found ." );
126
126
}
127
127
} catch (Exception exception ) {
128
128
log .error ("Migration failed!" , exception );
You can’t perform that action at this time.
0 commit comments