"""sections: add founding_year and notable_features columns (INDL-31 map page)

Revision ID: 0045
Revises: 0044
Create Date: 2026-07-02
"""
from alembic import op
import sqlalchemy as sa

revision = "0045"
down_revision = "0044"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.execute(
        "ALTER TABLE sections ADD COLUMN IF NOT EXISTS founding_year SMALLINT"
    )
    op.execute(
        "ALTER TABLE sections ADD COLUMN IF NOT EXISTS notable_features TEXT"
    )


def downgrade() -> None:
    op.drop_column("sections", "notable_features")
    op.drop_column("sections", "founding_year")
