"""add thumbnail_key column to images

Revision ID: 002
Revises: 001
Create Date: 2026-05-03

"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op

revision: str = "002"
down_revision: Union[str, None] = "001"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column("images", sa.Column("thumbnail_key", sa.String(70), nullable=True))


def downgrade() -> None:
    op.drop_column("images", "thumbnail_key")
