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:
parent
d810d9b01f
commit
e30488c95b
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue