Browse files

MDL-33924 quiz: incorrect foreign key definition.

Thanks to Jean-Michel Vedrine for spotting this.≈
  • Loading branch information...
timhunt committed Jun 20, 2012
1 parent a5f6ea2 commit e5ff0d32785690bf243668a35fd2c05b3ef7b6ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/db/install.xml
@@ -74,7 +74,7 @@
<KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="quiz"/>
<KEY NAME="quiz" TYPE="foreign" FIELDS="quiz" REFTABLE="quiz" REFFIELDS="id" PREVIOUS="primary" NEXT="userid"/>
<KEY NAME="userid" TYPE="foreign" FIELDS="userid" REFTABLE="user" REFFIELDS="id" PREVIOUS="quiz" NEXT="uniqueid"/>
- <KEY NAME="uniqueid" TYPE="foreign-unique" FIELDS="uniqueid" REFTABLE="question_attempts" REFFIELDS="id" PREVIOUS="userid"/>
+ <KEY NAME="uniqueid" TYPE="foreign-unique" FIELDS="uniqueid" REFTABLE="question_usages" REFFIELDS="id" PREVIOUS="userid"/>
<INDEX NAME="quiz-userid-attempt" UNIQUE="true" FIELDS="quiz, userid, attempt"/>

0 comments on commit e5ff0d3

Please sign in to comment.