Event-CRUD-Flask-python3-API/migrations/versions/30ce6cd40d05_adda_col_notifyed_bool.py

33 lines
807 B
Python
Raw Normal View History

2024-01-09 09:01:39 +00:00
"""AddA_col_Notifyed_Bool
Revision ID: 30ce6cd40d05
Revises: 04e41f293ec2
Create Date: 2024-01-09 10:46:50.964332
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '30ce6cd40d05'
down_revision = '04e41f293ec2'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user_event', schema=None) as batch_op:
batch_op.drop_column('notified')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user_event', schema=None) as batch_op:
batch_op.add_column(sa.Column('notified', sa.BOOLEAN(), nullable=True))
# ### end Alembic commands ###