pdf-quiz-generator/backend/alembic/versions/m6a7b8c9d031_question_difficulty.py
Daniel 91ec6a501c feat: key points smart links, difficulty tags, adaptive sessions, educator-only question management
Key points on questions link into article sections (AMBOSS-style) with samples; difficulty tagging with builder/bank filters; adaptive session algorithm prefers unanswered questions then recycles older incorrect ones, weakest categories first with damping; question create/edit is now admin/educator only; expired exams no longer auto-submit on resume; exam suspend messaging updated. Migrations k4f5a6b7c819, l5a6b7c8d920, m6a7b8c9d031. 63 backend and 97 frontend tests pass.
2026-09-09 02:26:45 +02:00

19 lines
402 B
Python

"""Question difficulty tagging.
Revision ID: m6a7b8c9d031
Revises: l5a6b7c8d920
"""
from alembic import op
revision = "m6a7b8c9d031"
down_revision = "l5a6b7c8d920"
branch_labels = None
depends_on = None
def upgrade():
op.execute("ALTER TABLE questions ADD COLUMN IF NOT EXISTS difficulty VARCHAR(10)")
def downgrade():
op.execute("ALTER TABLE questions DROP COLUMN IF EXISTS difficulty")