added cascade delete to process instance so task draft data is deleted (#361)

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
jasquat 2023-06-30 03:27:53 -04:00 committed by GitHub
parent d810d9b01f
commit e30488c95b
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class ProcessInstanceModel(SpiffworkflowBaseDBModel):
bpmn_process = relationship(BpmnProcessModel, cascade="delete") bpmn_process = relationship(BpmnProcessModel, cascade="delete")
tasks = relationship("TaskModel", cascade="delete") # type: ignore 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_events = relationship("ProcessInstanceEventModel", cascade="delete") # type: ignore
process_instance_file_data = relationship("ProcessInstanceFileDataModel", cascade="delete") # type: ignore process_instance_file_data = relationship("ProcessInstanceFileDataModel", cascade="delete") # type: ignore
human_tasks = relationship( human_tasks = relationship(