Skip to content
Snippets Groups Projects
Commit a92f1ecc authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Added relationship between Capability.steps and CapabilityExecution.steps

parent 70646dab
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,7 @@ class Capability(Base, CapabilityIF):
steps = sa.Column('capability_steps', sa.String)
max_jobs = sa.Column('max_jobs', sa.Integer)
requests = relationship("CapabilityRequest", back_populates='capability')
executions = relationship("CapabilityExecution", back_populates='steps')
@classmethod
def from_file(cls, filename: str):
......@@ -300,6 +301,7 @@ class CapabilityExecution(Base, CapabilityExecutionIF):
)
version_number = sa.Column("capability_version_number", sa.Integer)
current_step = sa.Column("current_step", sa.Integer)
steps = relationship("Capability", back_populates="capability_steps")
capability_version = relationship(CapabilityVersion, back_populates="executions")
__table_args__ = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment