app-MAIL-temp/migrations/versions/2021_092111_b8b4f9598240_.py
2021-09-21 11:25:52 +02:00

34 lines
804 B
Python

"""empty message
Revision ID: b8b4f9598240
Revises: bc75acacc98e
Create Date: 2021-09-21 11:22:24.285286
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b8b4f9598240'
down_revision = 'bc75acacc98e'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('api_key', 'name',
existing_type=sa.VARCHAR(length=128),
nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('api_key', 'name',
existing_type=sa.VARCHAR(length=128),
nullable=False)
# ### end Alembic commands ###