36 lines
916 B
Python
36 lines
916 B
Python
"""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 ###
|