Source:
<code>private void prepareSqlDatabase() { String host = mainConfig.getString("sql.host", "localhost"); int port = mainConfig.getInt("sql.port", 3306); String db = mainConfig.getString("sql.database", "EchoPet"); String user = mainConfig.getString("sql.username", "none"); String pass = mainConfig.getString("sql.password", "none"); BoneCPConfig bcc = new BoneCPConfig(); bcc.setJdbcUrl("jdbc:mysql://" + host + ":" + port + "/" + db); bcc.setUsername(user); bcc.setPassword(pass); bcc.setPartitionCount(2); bcc.setMinConnectionsPerPartition(3); bcc.setMaxConnectionsPerPartition(7); bcc.setConnectionTestStatement("SELECT 1"); try { dbPool = new BoneCP(bcc); } catch (SQLException e) { Logger.log(Logger.LogLevel.SEVERE, "Failed to connect to MySQL! [MySQL DataBase: " + db + "].", e, true); } if (dbPool != null) { Connection connection = null; Statement statement = null; try { connection = dbPool.getConnection(); statement = connection.createStatement(); statement.executeUpdate("CREATE TABLE IF NOT EXISTS EchoPet_version3 (" + <START> "OwnerName varchar(255)," + <END> "PetType varchar(255)," + "PetName varchar(255)," + "PetData INT," + "RiderPetType varchar(255)," + "RiderPetName varchar(255), " + "RiderPetData INT," + "PRIMARY KEY (OwnerName)" + ");"); TableMigrationUtil.migrateTables(); } catch (SQLException e) { Logger.log(Logger.LogLevel.SEVERE, "Table generation failed [MySQL DataBase: " + db + "].", e, true); } finally { try { if (statement != null) { statement.close(); } if (connection != null) { connection.close(); } } catch (SQLException ignored) { } } } }</code><technical_language>sanitized varchar(36)</technical_language>

Target:
private void prepareSqlDatabase() { String host = mainConfig.getString("sql.host", "localhost"); int port = mainConfig.getInt("sql.port", 3306); String db = mainConfig.getString("sql.database", "EchoPet"); String user = mainConfig.getString("sql.username", "none"); String pass = mainConfig.getString("sql.password", "none"); BoneCPConfig bcc = new BoneCPConfig(); bcc.setJdbcUrl("jdbc:mysql://" + host + ":" + port + "/" + db); bcc.setUsername(user); bcc.setPassword(pass); bcc.setPartitionCount(2); bcc.setMinConnectionsPerPartition(3); bcc.setMaxConnectionsPerPartition(7); bcc.setConnectionTestStatement("SELECT 1"); try { dbPool = new BoneCP(bcc); } catch (SQLException e) { Logger.log(Logger.LogLevel.SEVERE, "Failed to connect to MySQL! [MySQL DataBase: " + db + "].", e, true); } if (dbPool != null) { Connection connection = null; Statement statement = null; try { connection = dbPool.getConnection(); statement = connection.createStatement(); statement.executeUpdate("CREATE TABLE IF NOT EXISTS EchoPet_version3 (" + "OwnerName varchar(36)," + "PetType varchar(255)," + "PetName varchar(255)," + "PetData BIGINT," + "RiderPetType varchar(255)," + "RiderPetName varchar(255), " + "RiderPetData BIGINT," + "PRIMARY KEY (OwnerName)" + ");"); TableMigrationUtil.migrateTables(); } catch (SQLException e) { Logger.log(Logger.LogLevel.SEVERE, "Table generation failed [MySQL DataBase: " + db + "].", e, true); } finally { try { if (statement != null) { statement.close(); } if (connection != null) { connection.close(); } } catch (SQLException ignored) { } } } }