"""nullable true calenadr 

Revision ID: 0fc4f5414b35
Revises: 0f167fd69e66
Create Date: 2025-08-21 14:54:09.858529

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '0fc4f5414b35'
down_revision: Union[str, None] = '0f167fd69e66'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('calendar_post_types', 'calendar_id',
               existing_type=sa.INTEGER(),
               nullable=True)
    op.alter_column('calendar_posts', 'calendar_id',
               existing_type=sa.INTEGER(),
               nullable=True)
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('calendar_posts', 'calendar_id',
               existing_type=sa.INTEGER(),
               nullable=False)
    op.alter_column('calendar_post_types', 'calendar_id',
               existing_type=sa.INTEGER(),
               nullable=False)
    # ### end Alembic commands ###
