MDL-42866 EditPDF: Fix bad foreign key in install.xml
authorDamyon Wiese <damyon@moodle.com>
Wed, 13 Nov 2013 13:46:44 +0000 (21:46 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 13 Nov 2013 13:46:44 +0000 (21:46 +0800)
Thanks Tim for reporting this!

mod/assign/feedback/editpdf/db/install.xml

index 79054b2..39af982 100644 (file)
@@ -18,7 +18,7 @@
       </FIELDS>
       <KEYS>
         <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
-        <KEY NAME="gradeid" TYPE="foreign" FIELDS="gradeid" REFTABLE="assign_grade" REFFIELDS="id"/>
+        <KEY NAME="gradeid" TYPE="foreign" FIELDS="gradeid" REFTABLE="assign_grades" REFFIELDS="id"/>
       </KEYS>
       <INDEXES>
         <INDEX NAME="gradeid_pageno" UNIQUE="false" FIELDS="gradeid, pageno"/>
@@ -40,7 +40,7 @@
       </FIELDS>
       <KEYS>
         <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
-        <KEY NAME="gradeid" TYPE="foreign" FIELDS="gradeid" REFTABLE="assign_grade" REFFIELDS="id"/>
+        <KEY NAME="gradeid" TYPE="foreign" FIELDS="gradeid" REFTABLE="assign_grades" REFFIELDS="id"/>
       </KEYS>
       <INDEXES>
         <INDEX NAME="gradeid_pageno" UNIQUE="false" FIELDS="gradeid, pageno"/>
@@ -60,4 +60,4 @@
       </KEYS>
     </TABLE>
   </TABLES>
-</XMLDB>
\ No newline at end of file
+</XMLDB>