Adjust db type if postgres

pull/97/merge
Dave Syer 11 years ago
parent 4b2cea7267
commit e789840b3c

1
.gitignore vendored

@ -20,5 +20,6 @@ manifest.yml
MANIFEST.MF MANIFEST.MF
settings.xml settings.xml
activemq-data activemq-data
overridedb.*
*.iml *.iml
.idea .idea

@ -59,6 +59,9 @@ public class BatchDatabaseInitializer implements EnvironmentAware {
if ("hsql".equals(platform)) { if ("hsql".equals(platform)) {
platform = "hsqldb"; platform = "hsqldb";
} }
if ("postgres".equals(platform)) {
platform = "postgresql";
}
ResourceDatabasePopulator populator = new ResourceDatabasePopulator(); ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
String schemaLocation = this.environment.getProperty("schema", String schemaLocation = this.environment.getProperty("schema",
DEFAULT_SCHEMA_LOCATION); DEFAULT_SCHEMA_LOCATION);

Loading…
Cancel
Save