From e0a2b9a179e3fc10fb27eb8283e4f554633c288f Mon Sep 17 00:00:00 2001 From: Ken Stevens Date: Mon, 2 Dec 2019 19:02:04 -0500 Subject: [PATCH] support schema initialize naming in a backwards compatible way --- .../java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java index 42e0b2a9549..af5a782889e 100644 --- a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java +++ b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java @@ -57,6 +57,13 @@ public class Builder { return this; } + public Builder initializeSchema(String theVersion, String theSchemaName, ISchemaInitializationProvider theSchemaInitializationProvider) { + InitializeSchemaTask task = new InitializeSchemaTask(myRelease, theVersion, theSchemaInitializationProvider); + task.setDescription("Initialize " + theSchemaName + " schema"); + mySink.addTask(task); + return this; + } + public Builder executeRawSql(String theVersion, DriverTypeEnum theDriver, @Language("SQL") String theSql) { mySink.addTask(new ExecuteRawSqlTask(myRelease, theVersion).addSql(theDriver, theSql)); return this;