code: public void update(){
          logger.info("Begin automatic schema updating.");
          if(!existsTable()){
              createTable();
          }
  
          int currentVersion = getCurrentVersion();
          int version = currentVersion;
          String sql = null;
  
          while((sql = getSql(version + 1)) != null){
              if(sql.trim().length() != 0){
                  sqlManager.executeUpdate(new StringSqlResource(sql));
              }
              version++;
          }
  
          if(version != currentVersion){
              updateVersion(version);
              logger.info(String.format("Schema was updated to version %d.", version));
          } else {
              logger.info("There are no updates.");
          }
  
          logger.info("End automatic schema updating.");
      }
docs: Updates database schema to the latest state.
  <p>
  Note: Before calling this method, Connection might have to be auto-commit mode.