This is an automated email from the git hooks/post-receive script. New commit to branch feature/3653 in repository topia. See http://git.nuiton.org/topia.git commit d20b57bb48f2013c65f7da49def43cd8cd1ae6e3 Author: Brendan Le Ny <bleny@codelutin.com> Date: Wed Mar 25 16:18:04 2015 +0100 Updates to Flyway 3.2 and remove deprecated method usages --- pom.xml | 2 +- .../main/java/org/nuiton/topia/flyway/TopiaFlywayServiceImpl.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index c73dcf8..380f19f 100644 --- a/pom.xml +++ b/pom.xml @@ -235,7 +235,7 @@ <!-- libs version --> <commonsLoggingVersion>1.2</commonsLoggingVersion> <eugeneVersion>2.13</eugeneVersion> - <flywayVersion>3.1</flywayVersion> + <flywayVersion>3.2</flywayVersion> <guavaVersion>18.0</guavaVersion> <!-- Do not upgrade H2 to 1.4 see #3691 --> diff --git a/topia-service-flyway/src/main/java/org/nuiton/topia/flyway/TopiaFlywayServiceImpl.java b/topia-service-flyway/src/main/java/org/nuiton/topia/flyway/TopiaFlywayServiceImpl.java index 8c9569d..a9713d0 100644 --- a/topia-service-flyway/src/main/java/org/nuiton/topia/flyway/TopiaFlywayServiceImpl.java +++ b/topia-service-flyway/src/main/java/org/nuiton/topia/flyway/TopiaFlywayServiceImpl.java @@ -253,7 +253,7 @@ public class TopiaFlywayServiceImpl implements TopiaFlywayService { log.info("baseline flyway to version " + baselineVersion); } - flyway.setBaselineVersion(baselineVersion); + flyway.setBaselineVersionAsString(baselineVersion); flyway.setBaselineDescription("schema creation called on application context by topia flyway service"); flyway.baseline(); @@ -279,7 +279,7 @@ public class TopiaFlywayServiceImpl implements TopiaFlywayService { log.debug("schema exists, will ask flyway to init if necessary to version " + flywayBaselineVersion); } flyway.setBaselineOnMigrate(true); - flyway.setBaselineVersion(flywayBaselineVersion); + flyway.setBaselineVersionAsString(flywayBaselineVersion); } if (useModelVersion) { @@ -289,7 +289,7 @@ public class TopiaFlywayServiceImpl implements TopiaFlywayService { log.info("schema exists, will run flyway migration up to target version " + targetVersion); } - flyway.setTarget(targetVersion); + flyway.setTargetAsString(targetVersion); } else { if (log.isInfoEnabled()) { -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.