"""Duties: add event_type (duty | unavailable | vacation)

Revision ID: 003
Revises: 002
Create Date: 2025-02-17

"""

from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa

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


def upgrade() -> None:
    op.add_column(
        "duties",
        sa.Column("event_type", sa.Text(), nullable=False, server_default="duty"),
    )


def downgrade() -> None:
    op.drop_column("duties", "event_type")
