Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I deleted a Quiz question directly from node and the quiz_node_relationship table was not cleaned up. The deleted quiz question still had an entry in the quiz_node_relationship table.
Maybe that is because quiz results existed that included the quiz question? But then why keep the relationship if the question is deleted?
Also the question I deleted was an H5P question and after deleting all quiz results the quiz_h5p_user_results table was likewise not cleaned up. It also contained entries for the deleted question.
Comments
Comment #2
webservant316 CreditAttribution: webservant316 commentedComment #3
djdevinSimilar to #2402535: Disabling a quiz question type module leaves quizes with an existing question of that type unusable - the question is what to do, and I think the answer is to prevent deletions when there are quizzes or results that contain the question.
Comment #4
webservant316 CreditAttribution: webservant316 commentedI am in favor of whatever maintains the table relationships. Preventing deletion seems the simplest.
Comment #5
djdevinMoved to #2923829: Deal with deleted questions