From 1d87385da43ab14007e9dd89be53363d8e0cd463 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:19:23 +0100 Subject: [PATCH] add index to parent_comment_id --- lib/galaxy/model/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 9495b3a82401..337e5cf7791a 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -7727,7 +7727,7 @@ class WorkflowStep(Base, RepresentById): uuid = Column(UUIDType) label = Column(Unicode(255)) temp_input_connections: Optional[InputConnDictType] - parent_comment_id = Column(Integer, ForeignKey("workflow_comment.id"), nullable=True) + parent_comment_id = Column(Integer, ForeignKey("workflow_comment.id"), index=True, nullable=True) parent_comment = relationship( "WorkflowComment", @@ -8174,7 +8174,7 @@ class WorkflowComment(Base, RepresentById): type = Column(String(16)) color = Column(String(16)) data = Column(JSONType) - parent_comment_id = Column(Integer, ForeignKey("workflow_comment.id"), nullable=True) + parent_comment_id = Column(Integer, ForeignKey("workflow_comment.id"), index=True, nullable=True) workflow = relationship( "Workflow",