Skip to content
Permalink
Browse files
Minute changes inorder to create upstream FINCN-129 branch
  • Loading branch information
Izakey committed Mar 23, 2019
1 parent 2a1312c commit f34a8ab7123c7d04db9011a5b00c5c7be47240b6
Showing 1 changed file with 3 additions and 3 deletions.
@@ -205,17 +205,17 @@ private void initializeDatabase() throws Exception {
) {
final ResultSet findDB = statement.executeQuery("SELECT datname FROM pg_database WHERE datname = '" + postgresDbName + "'");
if (!findDB.next()) {
this.logger.info("Database {} does not exists, creating database now.", postgresDbName);
this.logger.info("Database {} does not exists, creating the database now.", postgresDbName);
statement.execute("CREATE DATABASE " + postgresDbName);
} else {
this.logger.info("Database {} does exists.", postgresDbName);
this.logger.info("Sorry, Database {} does exists.", postgresDbName);
}

try (
final Connection metaConnection = DataSourceUtils.createProvisionerConnection(this.environment);
final Statement metaStatement = metaConnection.createStatement()
) {
this.logger.info("Create tenants table if not exists");
this.logger.info("Create tenants table if it not exists");
metaStatement.execute("CREATE TABLE IF NOT EXISTS tenants (" +
" identifier VARCHAR(32) NOT NULL," +
" driver_class VARCHAR(255) NOT NULL," +

0 comments on commit f34a8ab

Please sign in to comment.