add workflow_permanent_id and version to workflows table (#308)

Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
Kerem Yilmaz
2024-05-13 18:29:14 -07:00
committed by GitHub
parent aecce4a3a0
commit b959822c6e
3 changed files with 42 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ from skyvern.forge.sdk.db.id import (
generate_task_id,
generate_workflow_id,
generate_workflow_parameter_id,
generate_workflow_permanent_id,
generate_workflow_run_id,
)
from skyvern.forge.sdk.schemas.tasks import ProxyLocation
@@ -132,6 +133,9 @@ class WorkflowModel(Base):
modified_at = Column(DateTime, default=datetime.datetime.utcnow, onupdate=datetime.datetime.utcnow, nullable=False)
deleted_at = Column(DateTime, nullable=True)
workflow_permanent_id = Column(String, default=generate_workflow_permanent_id)
version = Column(Integer, default=1)
class WorkflowRunModel(Base):
__tablename__ = "workflow_runs"