Skip to content

Commit

Permalink
Add deleted at to persistent browser sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
satansdeer committed Dec 17, 2024
1 parent 1ce7bd6 commit d8c82c1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"""add deleted at to persistent browser session model
Revision ID: e2ea4b339fb0
Revises: 55cabeeb1590
Create Date: 2024-12-17 18:24:40.276458+00:00
"""

from typing import Sequence, Union

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "e2ea4b339fb0"
down_revision: Union[str, None] = "55cabeeb1590"
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("persistent_browser_sessions", sa.Column("deleted_at", sa.DateTime(), nullable=True))
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("persistent_browser_sessions", "deleted_at")
# ### end Alembic commands ###
1 change: 1 addition & 0 deletions skyvern/forge/sdk/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,3 +552,4 @@ class PersistentBrowserSessionModel(Base):
runnable_id = Column(String, nullable=False)
created_at = Column(DateTime, default=datetime.datetime.utcnow, nullable=False)
modified_at = Column(DateTime, default=datetime.datetime.utcnow, onupdate=datetime.datetime.utcnow, nullable=False)
deleted_at = Column(DateTime, nullable=True)

0 comments on commit d8c82c1

Please sign in to comment.