"""auto

Revision ID: fb0243eaa7c3
Revises: e34cff15a95e
Create Date: 2025-06-06 07:43:42.387700

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql

# revision identifiers, used by Alembic.
revision = 'fb0243eaa7c3'
down_revision = 'e34cff15a95e'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('submissions', 'plant_name',
               existing_type=mysql.VARCHAR(length=100),
               nullable=False)
    op.drop_column('submissions', 'price')
    op.drop_column('submissions', 'source')
    op.drop_column('submissions', 'submission_type')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('submissions', sa.Column('submission_type', mysql.VARCHAR(length=50), nullable=False))
    op.add_column('submissions', sa.Column('source', mysql.VARCHAR(length=255), nullable=True))
    op.add_column('submissions', sa.Column('price', mysql.FLOAT(), nullable=True))
    op.alter_column('submissions', 'plant_name',
               existing_type=mysql.VARCHAR(length=100),
               nullable=True)
    # ### end Alembic commands ###
