mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 19:09:03 +00:00
Adjust db type if postgres
This commit is contained in:
@@ -20,5 +20,6 @@ manifest.yml
|
||||
MANIFEST.MF
|
||||
settings.xml
|
||||
activemq-data
|
||||
overridedb.*
|
||||
*.iml
|
||||
.idea
|
||||
|
||||
+3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user