"""nullable true for question answer and status in rfp

Revision ID: cff83f480ab5
Revises: 7eb566cf9534
Create Date: 2026-02-04 16:11:52.751288

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'cff83f480ab5'
down_revision: Union[str, Sequence[str], None] = '7eb566cf9534'
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.alter_column('rfp', 'total_questions',
               existing_type=sa.INTEGER(),
               nullable=True)
    op.alter_column('rfp', 'answered_questions',
               existing_type=sa.INTEGER(),
               nullable=True)
    op.alter_column('rfp', 'status',
               existing_type=sa.VARCHAR(length=10),
               nullable=True)
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('rfp', 'status',
               existing_type=sa.VARCHAR(length=10),
               nullable=False)
    op.alter_column('rfp', 'answered_questions',
               existing_type=sa.INTEGER(),
               nullable=False)
    op.alter_column('rfp', 'total_questions',
               existing_type=sa.INTEGER(),
               nullable=False)
    # ### end Alembic commands ###
