Event-CRUD-Flask-python3-API/migrations/versions/b962126d3578_.py

37 lines
916 B
Python
Raw Normal View History

2024-01-07 11:28:49 +00:00
"""empty message
Revision ID: b962126d3578
Revises: 9d6b0ea04d2c
Create Date: 2024-01-07 11:41:03.752411
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b962126d3578'
down_revision = '9d6b0ea04d2c'
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.alter_column('location',
existing_type=sa.VARCHAR(length=100),
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.alter_column('location',
existing_type=sa.VARCHAR(length=100),
nullable=True)
# ### end Alembic commands ###