"""in trashbox model categories->category

Revision ID: 547f860f21a7
Revises: a0206e2bf259
Create Date: 2023-08-12 16:13:44.598427

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '547f860f21a7'
down_revision = 'a0206e2bf259'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('trashboxes', schema=None) as batch_op:
        batch_op.add_column(sa.Column('category', sa.String(), nullable=True))
        batch_op.drop_column('categories')

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('trashboxes', schema=None) as batch_op:
        batch_op.add_column(sa.Column('categories', sa.VARCHAR(), nullable=True))
        batch_op.drop_column('category')
    # ### end Alembic commands ###
