The backfill inserts multiple rows per user and question set when a practice has several parent links, so the old (user_id, question_set_id) constraint must be removed first. Co-authored-by: Cursor <cursoragent@cursor.com>
Add migration 000109, require parent context on complete, and update progress queries and LMS rollups. Co-authored-by: Cursor <cursoragent@cursor.com>