Permalink
Browse files

MDL-33924 quiz: incorrect foreign key definition.

Thanks to Jean-Michel Vedrine for spotting this.≈
  • Loading branch information...
1 parent 68b0cae commit 5f980afc0e93f51086f7715f1b0f604d416705dd @timhunt timhunt committed Jun 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/db/install.xml
View
2 mod/quiz/db/install.xml
@@ -67,7 +67,7 @@
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="uniqueid"/>
- <KEY NAME="uniqueid" TYPE="foreign-unique" FIELDS="uniqueid" REFTABLE="question_attempts" REFFIELDS="id" PREVIOUS="primary" NEXT="quiz"/>
+ <KEY NAME="uniqueid" TYPE="foreign-unique" FIELDS="uniqueid" REFTABLE="question_usages" REFFIELDS="id" PREVIOUS="primary" NEXT="quiz"/>
<KEY NAME="quiz" TYPE="foreign" FIELDS="quiz" REFTABLE="quiz" REFFIELDS="id" PREVIOUS="uniqueid"/>
</KEYS>
<INDEXES>

0 comments on commit 5f980af

Please sign in to comment.