From e30488c95b0f4d47d8982a891be6755aee87133b Mon Sep 17 00:00:00 2001 From: jasquat <2487833+jasquat@users.noreply.github.com> Date: Fri, 30 Jun 2023 03:27:53 -0400 Subject: [PATCH] added cascade delete to process instance so task draft data is deleted (#361) Co-authored-by: jasquat --- .../src/spiffworkflow_backend/models/process_instance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance.py b/spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance.py index a0aaa107f..065ad1f35 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance.py @@ -70,6 +70,7 @@ class ProcessInstanceModel(SpiffworkflowBaseDBModel): bpmn_process = relationship(BpmnProcessModel, cascade="delete") tasks = relationship("TaskModel", cascade="delete") # type: ignore + task_draft_data = relationship("TaskDraftDataModel", cascade="delete") # type: ignore process_instance_events = relationship("ProcessInstanceEventModel", cascade="delete") # type: ignore process_instance_file_data = relationship("ProcessInstanceFileDataModel", cascade="delete") # type: ignore human_tasks = relationship(