#1543 - ENH: Allow ebean.dbSchema to have multiple schemas

This commit is contained in:
rob bygrave
2018-11-13 17:51:57 +13:00
parent 61eedb4e9a
commit b386c9a5a8
@@ -126,7 +126,9 @@ public class DdlGenerator {
private void createSchemaIfRequired(Connection connection) {
try {
server.getDatabasePlatform().createSchemaIfNotExists(dbSchema, connection);
for (String schema : dbSchema.split(",")) {
server.getDatabasePlatform().createSchemaIfNotExists(schema, connection);
}
} catch (SQLException e) {
throw new PersistenceException("Failed to create DB Schema", e);
}