code: @GET
      @Path("{uuid}/repair")
      @Produces("text/html")
      public String repairView(@PathParam("uuid") String uuid) {
          MigrationFeature.checkMigrationId(uuid);
          if (failMigrations.isEmpty()) {
              throw new NotFoundException();
          }
  
          //REPAIR
          Map<String, String> model = buildPageModel(MigrationType.REPAIR, uuid);
          StrSubstitutor sub = new StrSubstitutor(model);
          model.put("migrationUri", model.get("migrationUri") + "/repair");
  
          StringBuilder tabs = new StringBuilder();
          StringBuilder diffs = new StringBuilder();
  
          int i = 0;
          for (Map.Entry<String, MigrationFail> failEntry : failMigrations.entrySet()) {
              String dbName = failEntry.getKey();
              MigrationFail fail = failEntry.getValue();
              Migration migration = fail.migration;
              ScriptInfo info = migration.generate();
  
              tabs.append("<li i=\"").append(i).append("\" class=\"db-name\">").append(dbName).append("</li>");
              diffs.append("<div class=\"diff\"><h2>");
              diffs.append(Messages.get("view.app.database.repair.subTitle", fail.throwable.getLocalizedMessage()));
              diffs.append("</h2><pre>")
                      .append(info.getApplyDdl())
                      .append("</pre></div>");
              i++;
          }
          model.put("dbNames", tabs.toString());
          model.put("diffs", diffs.toString());
  
          return sub.replace(MIGRATION_HTML);
      }
docs: <p>repairView.</p>
  
  @param uuid a {@link java.lang.String} object.
  @return a {@link java.lang.String} object.