diff --git a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java index 7198767ee0ee..d782433263f3 100644 --- a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java +++ b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java @@ -65,7 +65,12 @@ public Builder forVersion(T theRelease) { theTask.validate(); myTasks.put(theRelease, theTask); }; - return new Builder(theRelease.name(), sink); + return new Builder(toReleaseName(theRelease), sink); + } + + @Nonnull + protected String toReleaseName(T theRelease) { + return theRelease.name(); } public List getAllTasks(T[] theVersionEnumValues) {