"""project_details.tour_overrides: the team's own words for the introduction

Revision ID: d5f7a9c1e3b6
Revises: a1c9f3e7d5b2
Create Date: 2026-09-02

The tool introduction's points are content shipped with the app; a project
may say them its own way ("we've got a few initial concepts, home page
only"). Overrides are per project, per point key: title and/or body.
"""
from typing import Sequence, Union

import sqlalchemy as sa
from alembic import op

revision: str = 'd5f7a9c1e3b6'
down_revision: Union[str, Sequence[str], None] = 'a1c9f3e7d5b2'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column('project_details', sa.Column('tour_overrides', sa.JSON(), nullable=True))


def downgrade() -> None:
    op.drop_column('project_details', 'tour_overrides')
