diff --git a/extensions/datasource/deployment/src/main/java/io/quarkus/datasource/deployment/devservices/DevUIDatasourceProcessor.java b/extensions/datasource/deployment/src/main/java/io/quarkus/datasource/deployment/devservices/DevUIDatasourceProcessor.java index d608338bfe094..f2a7c83105b49 100644 --- a/extensions/datasource/deployment/src/main/java/io/quarkus/datasource/deployment/devservices/DevUIDatasourceProcessor.java +++ b/extensions/datasource/deployment/src/main/java/io/quarkus/datasource/deployment/devservices/DevUIDatasourceProcessor.java @@ -29,6 +29,6 @@ public DevConsoleTemplateInfoBuildItem devConsoleInfo( @BuildStep(onlyIf = IsDevelopment.class) @Record(value = STATIC_INIT, optional = true) DevConsoleRouteBuildItem devConsoleCleanDatabaseHandler(DatabaseRecorder recorder) { - return new DevConsoleRouteBuildItem("clean", "POST", recorder.devConsoleCleanDatabaseHandler()); + return new DevConsoleRouteBuildItem("reset", "POST", recorder.devConsoleResetDatabaseHandler()); } } diff --git a/extensions/datasource/deployment/src/main/resources/dev-templates/embedded.html b/extensions/datasource/deployment/src/main/resources/dev-templates/embedded.html index 5782d51593a6b..3db6eb6a0f451 100644 --- a/extensions/datasource/deployment/src/main/resources/dev-templates/embedded.html +++ b/extensions/datasource/deployment/src/main/resources/dev-templates/embedded.html @@ -1,3 +1,3 @@ - - + + Reset Databases diff --git a/extensions/datasource/deployment/src/main/resources/dev-templates/clean.html b/extensions/datasource/deployment/src/main/resources/dev-templates/reset.html similarity index 80% rename from extensions/datasource/deployment/src/main/resources/dev-templates/clean.html rename to extensions/datasource/deployment/src/main/resources/dev-templates/reset.html index d667072017f00..53bfe478404e6 100644 --- a/extensions/datasource/deployment/src/main/resources/dev-templates/clean.html +++ b/extensions/datasource/deployment/src/main/resources/dev-templates/reset.html @@ -1,5 +1,5 @@ {#include main} - {#title}Clean Databases{/title} + {#title}Reset Databases{/title} {#body}
{/for} diff --git a/extensions/datasource/runtime/src/main/java/io/quarkus/datasource/runtime/DatabaseRecorder.java b/extensions/datasource/runtime/src/main/java/io/quarkus/datasource/runtime/DatabaseRecorder.java index a770aa7c2cb0e..1243ecc91c91c 100644 --- a/extensions/datasource/runtime/src/main/java/io/quarkus/datasource/runtime/DatabaseRecorder.java +++ b/extensions/datasource/runtime/src/main/java/io/quarkus/datasource/runtime/DatabaseRecorder.java @@ -11,7 +11,7 @@ @Recorder public class DatabaseRecorder { - public Handler |