Skip to content

Commit 7f9987b

Browse files
committed
Silly little poopy brain thing!
1 parent 26b6bdf commit 7f9987b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/de/presti/ree6/sql/SQLConnector.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)