PaperParser/migrations/versions/d4a19a758c83_added_desc_fie...

33 lines
802 B
Python
Raw Permalink Normal View History

2024-04-12 16:55:27 +10:00
"""Added desc field to user
Revision ID: d4a19a758c83
Revises: 65ccd5b1039b
Create Date: 2024-04-12 16:53:20.758855
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd4a19a758c83'
down_revision = '65ccd5b1039b'
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('description', sa.String(), 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('description')
# ### end Alembic commands ###