Skip to content

Commit

Permalink
Flyway bump (#55)
Browse files Browse the repository at this point in the history
* Bump Flyway version to 6.0.0

* Enhance Flyway logging to list pending migrations before applying them
  • Loading branch information
k-r-g authored and msmith-techempower committed Aug 23, 2019
1 parent f4ae862 commit 3a0f429
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ public int migrate(DataSource dataSource)
{
if (flywayConfig != null)
{
return flywayConfig.dataSource(dataSource).load().migrate();
Flyway f = flywayConfig.dataSource(dataSource).load();
for (MigrationInfo i : f.info().pending())
{
log.log("Pending migration: " + i.getScript());
}
return f.migrate();
}
log.log("Flyway not initialized. Skipping database migrations.");
return 0;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<jms.version>2.0.1</jms.version>
<hikaricp.version>3.3.1</hikaricp.version>
<slf4j.version>1.8.0-beta4</slf4j.version>
<flyway.version>5.2.1</flyway.version>
<flyway.version>6.0.0</flyway.version>
</properties>

<scm>
Expand Down

0 comments on commit 3a0f429

Please sign in to comment.