pdf-quiz-generator/backend/alembic/versions/j3e4f5a6b708_option_explanations.py
Daniel 179e51d143 feat: per-option explanations
Questions support an explanation per option, edited in the question dialog and shown in study feedback. Keys must match current options. Migration j3e4f5a6b708. 60 backend and 95 frontend tests pass.
2026-09-08 19:29:21 +02:00

19 lines
409 B
Python

"""Per-option explanations.
Revision ID: j3e4f5a6b708
Revises: i2d3e4f5a607
"""
from alembic import op
revision = "j3e4f5a6b708"
down_revision = "i2d3e4f5a607"
branch_labels = None
depends_on = None
def upgrade():
op.execute("ALTER TABLE questions ADD COLUMN IF NOT EXISTS option_explanations JSON")
def downgrade():
op.execute("ALTER TABLE questions DROP COLUMN IF EXISTS option_explanations")