code: private void runScripts(DBConnection dbc, String dropRoot,
              String schemaName, boolean createSchemas) throws IOException {
          int fi = 0;
          boolean fnf = false;
          while (!fnf) {
              InputStream sqlStream =
                      getClass().getResourceAsStream(dropRoot + fi + ".sql");
              if (sqlStream == null) {
                  fnf = true;
                  break;
              }
  
              String script = IOUtils.toString(sqlStream);
              String[] sqlStatements = script.split(SQL_SCRIPT_DELIMITER);
  
              for (String sqlStatement : sqlStatements) {
  
                  // MySQL allows schemas to by system or dba managed. If dba managed we must
                  // skip the schema creation phase which is always the first sql script (0.sql)
                  if (createSchemas == false && fi == 0) {
                      continue;
                  }
  
                  if (schemaName != null) {
                      sqlStatement =
                              sqlStatement.replace(SCHEMA_NAME_PLACEHOLDER,
                                      schemaName);
                  }
  
                  try {
                      databaseService.update(dbc, sqlStatement);
                  } catch (SQLException e) {
                      log.debug("Error running script, message:\n{}\n\n{}\n",
                              new Object[] { e.getMessage(), sqlStatement });
                      //swallow since DROP statements might fail.
                  }
              }
              fi++;
          }
      }
docs: Finds .sql scripts in <tt>dropRoot</tt> and executes each statement
  againsts the {@link DBConnection} <tt>dbc</tt>.
  
  @param dbc {@link DBConnection}, the database connection
  @param dropRoot {@link String}, the classpath root where .sql files
  are found
  @param schemaName {@link String}, the schema name, which can be null
  @param createSchemas {@link boolean}, true if the system should create new schemas, false otherwise
  @throws IOException Thrown if an I/O error occurred reading a .sql file
  from the classpath