-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revive batch_timeout column to avoid confusion between timeout column
- Loading branch information
Showing
3 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...backend/manager/models/alembic/versions/d4c174934fd0_add_sessions_batch_timeout_column.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""add sessions batch_timeout column | ||
Revision ID: d4c174934fd0 | ||
Revises: e9e574a6e22d | ||
Create Date: 2024-11-11 16:47:05.150825 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "d4c174934fd0" | ||
down_revision = "e9e574a6e22d" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column("sessions", sa.Column("batch_timeout", sa.BigInteger(), nullable=True)) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column("sessions", "batch_timeout") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters