From e789840b3cf9c433d842d83452c98664eac80e27 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Wed, 23 Oct 2013 08:02:26 -0400 Subject: [PATCH] Adjust db type if postgres --- .gitignore | 1 + .../boot/autoconfigure/batch/BatchDatabaseInitializer.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 8989af1fc4..29b287eb60 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,6 @@ manifest.yml MANIFEST.MF settings.xml activemq-data +overridedb.* *.iml .idea diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java index a6483cc229..330a75cf63 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java @@ -59,6 +59,9 @@ public class BatchDatabaseInitializer implements EnvironmentAware { if ("hsql".equals(platform)) { platform = "hsqldb"; } + if ("postgres".equals(platform)) { + platform = "postgresql"; + } ResourceDatabasePopulator populator = new ResourceDatabasePopulator(); String schemaLocation = this.environment.getProperty("schema", DEFAULT_SCHEMA_LOCATION);