"""increase_file_content_type_max_length

Revision ID: baa5fe7dc011
Revises: 53678b07d2d1
Create Date: 2025-09-04 14:48:38.763472

"""

from collections.abc import Sequence

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "baa5fe7dc011"
down_revision: str | None = "53678b07d2d1"
branch_labels: str | Sequence[str] | None = None
depends_on: str | Sequence[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "file",
        "content_type",
        existing_type=sa.VARCHAR(length=100),
        type_=sa.VARCHAR(length=255),
        existing_nullable=False,
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "file",
        "content_type",
        existing_type=sa.VARCHAR(length=255),
        type_=sa.VARCHAR(length=100),
        existing_nullable=False,
    )
    # ### end Alembic commands ###
