"""

Revision ID: 376ae9f9cf1b
Revises: 2e92816ea461
Create Date: 2026-06-14 19:55:33.468092

"""
from typing import Sequence, Union

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

# revision identifiers, used by Alembic.
revision: str = '376ae9f9cf1b'
down_revision: Union[str, Sequence[str], None] = '2e92816ea461'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('images', sa.Column('filename', sa.String(length=255), nullable=False))
    op.drop_column('images', 'path')
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('images', sa.Column('path', mysql.VARCHAR(length=255), nullable=False))
    op.drop_column('images', 'filename')
    # ### end Alembic commands ###
