Skip to content

Commit

Permalink
chore: perform migration to allow null entries in table (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegentlemanphysicist authored Jul 30, 2024
1 parent c14162a commit 8acbbaf
Showing 1 changed file with 24 additions and 0 deletions.
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)

0 comments on commit 8acbbaf

Please sign in to comment.