ALTER TABLE grade_edit_requests
    ADD COLUMN IF NOT EXISTS grading_step_id INT NULL AFTER context_id,
    ADD INDEX IF NOT EXISTS idx_step_edit_lookup
        (grade_type, student_id, context_id, grading_step_id, requested_by, status);
