pyfedi/migrations/versions/0dadae40281d_user_title.py

33 lines
786 B
Python
Raw Permalink Normal View History

2023-12-31 17:49:15 -08:00
"""user title
Revision ID: 0dadae40281d
Revises: c80716fd7b79
Create Date: 2024-01-01 14:12:01.062643
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0dadae40281d'
down_revision = 'c80716fd7b79'
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.add_column(sa.Column('title', sa.String(length=256), nullable=True))
# ### 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.drop_column('title')
# ### end Alembic commands ###