-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: perform migration to allow null entries in table (#45)
- Loading branch information
1 parent
c14162a
commit 8acbbaf
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
aggregator/alembic/versions/7c002818cb32_allow_null_in_offline_sessions.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 @@ | ||
"""allow null in offline sessions | ||
Revision ID: 7c002818cb32 | ||
Revises: 5bfc2a71a71f | ||
Create Date: 2024-07-29 16:29:07.464223 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '7c002818cb32' | ||
down_revision = '5bfc2a71a71f' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.alter_column('client_sessions','offline_sessions', existing_type=sa.INTEGER(), nullable=True) | ||
|
||
|
||
def downgrade() -> None: | ||
op.alter_column('client_sessions','offline_sessions', existing_type=sa.INTEGER(), nullable=False) |