Recovery snapshot of the existing worktree before the Orthobullets-inspired revamp. Includes explanation images, classification snapshots, quiz visibility/resume fixes, quiz codes, TTS options and bot formatting. Secret heuristic and Python syntax checks passed; not a release or full behavioral validation.
23 lines
615 B
Python
23 lines
615 B
Python
"""add explanation image path to questions
|
|
|
|
Revision ID: b71a4e2d6c90
|
|
Revises: e4c7b2a9d6f1
|
|
Create Date: 2026-06-09 00:00:00.000000
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
|
|
|
|
revision: str = 'b71a4e2d6c90'
|
|
down_revision: Union[str, None] = 'e4c7b2a9d6f1'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.execute("ALTER TABLE questions ADD COLUMN IF NOT EXISTS explanation_image_path VARCHAR")
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.execute("ALTER TABLE questions DROP COLUMN IF EXISTS explanation_image_path")
|