"""add skip_holidays to events

Revision ID: 12ab34cd56ef
Revises: 2b627d0885c3
Create Date: 2025-10-12

"""
from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = '12ab34cd56ef'
down_revision = '2b627d0885c3'
branch_labels = None
depends_on = None

def upgrade():
    op.add_column('events', sa.Column('skip_holidays', sa.Boolean(), nullable=False, server_default=sa.text('0')))
    # Optional: create index if queries need it
    # op.create_index('ix_events_skip_holidays', 'events', ['skip_holidays'])


def downgrade():
    # Optional: drop index
    # op.drop_index('ix_events_skip_holidays', table_name='events')
    op.drop_column('events', 'skip_holidays')
