Skip to content

Commit

Permalink
fix: Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Sep 10, 2024
1 parent f252202 commit 81fd06a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions migrations/versions/009.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""add_active_field
Revision ID: 009
Revises: 008
Create Date: 2024-09-10 08:22:21.769525
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '009'
down_revision = '008'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user', schema=None) as batch_op:
batch_op.add_column(sa.Column('active', sa.Boolean(), nullable=False))

# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user', schema=None) as batch_op:
batch_op.drop_column('active')

# ### end Alembic commands ###

0 comments on commit 81fd06a

Please sign in to comment.