From aae0e25844c88469226348793ec49fad36b3f604 Mon Sep 17 00:00:00 2001 From: Daniel Miller Date: Tue, 5 Sep 2023 09:43:17 -0400 Subject: [PATCH] Add form and case types to deletable doc types --- corehq/apps/cleanup/deletable_doc_types.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/corehq/apps/cleanup/deletable_doc_types.py b/corehq/apps/cleanup/deletable_doc_types.py index e36fe3925b52..46d381ffb2c4 100644 --- a/corehq/apps/cleanup/deletable_doc_types.py +++ b/corehq/apps/cleanup/deletable_doc_types.py @@ -43,4 +43,16 @@ 'FixtureDataType': (FIXTURES_DB,), 'FixtureDataItem': (FIXTURES_DB,), 'FixtureOwnership': (FIXTURES_DB,), + + # form and case types + 'XFormInstance': (MAIN_DB,), + 'XFormArchived': (MAIN_DB,), + 'XFormDeprecated': (MAIN_DB,), + 'XFormDuplicate': (MAIN_DB,), + 'XFormError': (MAIN_DB,), + 'SubmissionErrorLog': (MAIN_DB,), + 'XFormInstance-Deleted': (MAIN_DB,), + 'HQSubmission': (MAIN_DB,), + 'CommCareCase': (MAIN_DB,), + 'CommCareCase-Deleted': (MAIN_DB,), }