From 20d1ab2facb9b9a083567f003188aa1596d5db33 Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Tue, 28 Jul 2020 08:38:28 -0400 Subject: [PATCH] Mark renameTask as deprecated --- .../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 5e3109b4455..983c3a5b512 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 @@ -181,10 +181,17 @@ public class Builder { return task; } + /** + * @deprecated Do not rename indexes - It is too hard to figure out what happened if something goes wrong + */ + @Deprecated public void renameIndex(String theVersion, String theOldIndexName, String theNewIndexName) { renameIndexOptional(false, theVersion, theOldIndexName, theNewIndexName); } + /** + * @deprecated Do not rename indexes - It is too hard to figure out what happened if something goes wrong + */ public void renameIndexStub(String theVersion, String theOldIndexName, String theNewIndexName) { renameIndexOptional(true, theVersion, theOldIndexName, theNewIndexName); }