This commit is contained in:
2025-12-22 14:47:25 -05:00
parent d4e859f9a7
commit 00e9eb8986
81 changed files with 13933 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
"""Make user email nullable
Revision ID: 90b81e097444
Revises: 6d457de4e2b1
Create Date: 2025-12-21 20:18:36.820920
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '90b81e097444'
down_revision = '6d457de4e2b1'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('users', schema=None) as batch_op:
batch_op.alter_column('email',
existing_type=sa.VARCHAR(length=255),
nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('users', schema=None) as batch_op:
batch_op.alter_column('email',
existing_type=sa.VARCHAR(length=255),
nullable=False)
# ### end Alembic commands ###