code: private void fixSchema(CmsSetupDb dbCon) throws SQLException {
  
          Map<String, String> replacer = new HashMap<String, String>();
          String tableName;
          String fieldName;
          String fieldType;
          String nullAcceptInfo;
          String defaultValue;
          String query;
          for (int i = 0; i < DB_ARRAY.length; i++) {
              tableName = DB_ARRAY[i][0];
              fieldName = DB_ARRAY[i][1];
              fieldType = DB_ARRAY[i][2];
              nullAcceptInfo = DB_ARRAY[i][3];
              defaultValue = DB_ARRAY[i][4];
  
              if ((fieldType != null) && (fieldType.length() > 0)) {
                  initReplacer(replacer, tableName, fieldName);
                  replacer.put(REPLACEMENT_FIELD_TYPE, fieldType);
                  query = readQuery(QUERY_ALTER_FIELD);
                  dbCon.updateSqlStatement(query, replacer, null);
              }
  
              if ((nullAcceptInfo != null) && (!nullAcceptInfo.equals(NO_CHANGE))) {
                  String q;
                  if (nullAcceptInfo.equals(DROP_NOT_NULL)) {
                      q = QUERY_DROP_NOT_NULL;
                  } else {
                      q = QUERY_SET_NOT_NULL;
                  }
                  query = readQuery(q);
                  initReplacer(replacer, tableName, fieldName);
                  dbCon.updateSqlStatement(query, replacer, null);
              }
  
              if ((defaultValue != null) && (defaultValue.length() > 0)) {
                  initReplacer(replacer, tableName, fieldName);
                  if (defaultValue.equals(DV_DROP)) {
                      query = readQuery(QUERY_DROP_DEFAULT_VALUE);
                      dbCon.updateSqlStatement(query, replacer, null);
                  } else {
                      query = readQuery(QUERY_SET_DEFAULT_VALUE);
                      replacer.put(REPLACEMENT_FIELD_DEFAULT_VALUE, defaultValue);
                      dbCon.updateSqlStatement(query, replacer, null);
                  }
              }
  
          }
  
      }
docs: Fixes the database schema.<p>
  
  @param dbCon database connection
  
  @throws SQLException if something goes wrong changing the schema