add finished_at to steps table (#3129)

This commit is contained in:
Jonathan Dobson
2025-08-07 11:35:07 -04:00
committed by GitHub
parent d0abe13e14
commit 1a0f57248e
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
"""add finished_at to steps table
Revision ID: d67d7c00ab02
Revises: 0135ee8b36b0
Create Date: 2025-08-07 15:30:06.604933+00:00
"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "d67d7c00ab02"
down_revision: Union[str, None] = "0135ee8b36b0"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("steps", sa.Column("finished_at", sa.DateTime(), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("steps", "finished_at")
# ### end Alembic commands ###

View File

@@ -134,6 +134,7 @@ class StepModel(Base):
reasoning_token_count = Column(Integer, default=0)
cached_token_count = Column(Integer, default=0)
step_cost = Column(Numeric, default=0)
finished_at = Column(DateTime, nullable=True)
class OrganizationModel(Base):