Skip to content

Commit

Permalink
fix migration bug: edges not cascade deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Jul 11, 2019
1 parent e8c8d15 commit 1418f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eNMS/models/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ class Workflow(Job):
id = Column(Integer, ForeignKey("Job.id"), primary_key=True)
use_workflow_targets = Column(Boolean, default=True)
jobs = relationship("Job", secondary=job_workflow_table, back_populates="workflows")
edges = relationship("WorkflowEdge", back_populates="workflow")
edges = relationship("WorkflowEdge", back_populates="workflow", cascade="all, delete-orphan")

def __init__(self, **kwargs: Any) -> None:
end = fetch("Service", name="End")
Expand Down

0 comments on commit 1418f06

Please sign in to comment.