code: protected boolean needsUpdating(CmsSetupDb dbCon, String tablename) throws SQLException {
  
          System.out.println(new Exception().getStackTrace()[0].toString());
          boolean result = true;
  
          String query = readQuery(QUERY_DESCRIBE_TABLE);
          Map<String, String> replacer = new HashMap<String, String>();
          replacer.put(REPLACEMENT_TABLENAME, tablename);
          CmsSetupDBWrapper db = null;
  
          try {
              db = dbCon.executeSqlStatement(query, replacer);
  
              while (db.getResultSet().next()) {
                  String fieldname = db.getResultSet().getString("Field");
                  if (fieldname.equals(COLUMN_PROJECT_ID) || fieldname.equals(COLUMN_PROJECT_LASTMODIFIED)) {
                      try {
                          String fieldtype = db.getResultSet().getString("Type");
                          // If the type is varchar then no update needs to be done.
                          if (fieldtype.indexOf("varchar") > 0) {
                              return false;
                          }
                      } catch (SQLException e) {
                          result = true;
                      }
                  }
              }
          } finally {
              if (db != null) {
                  db.close();
              }
          }
          return result;
      }
docs: Checks if the given table needs an update of the uuids.<p>
  
  @param dbCon the db connection interface
  @param tablename the table to check
  
  @return true if the project ids are not yet updated, false if nothing needs to be done
  
  @throws SQLException if something goes wrong