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 9a03a8173f0c1436151b094e7a48c34f80f737f2 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 23d8533..f068f01 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> <h2Version>1.4.184</h2Version> <hamcrestVersion>1.3</hamcrestVersion> 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 15acc9e..993421b 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 @@ -260,7 +260,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(); @@ -286,7 +286,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) { @@ -296,7 +296,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>.