acm-site/migrations/versions/7cdd046a2abf_make_password_nullable.py
2024-03-03 17:52:34 -05:00

36 lines
909 B
Python

"""make password nullable
Revision ID: 7cdd046a2abf
Revises: 236945763c86
Create Date: 2024-03-03 17:38:32.319173
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7cdd046a2abf'
down_revision = '236945763c86'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('acm_users', schema=None) as batch_op:
batch_op.alter_column('email',
existing_type=sa.VARCHAR(),
nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('acm_users', schema=None) as batch_op:
batch_op.alter_column('email',
existing_type=sa.VARCHAR(),
nullable=False)
# ### end Alembic commands ###