]> git.mjollnir.org Git - moodle.git/commitdiff
Drop one index that shouldn't be there. MDL-11751
authorstronk7 <stronk7>
Sun, 14 Oct 2007 09:52:16 +0000 (09:52 +0000)
committerstronk7 <stronk7>
Sun, 14 Oct 2007 09:52:16 +0000 (09:52 +0000)
lib/db/upgrade.php

index aa13fc53c0ba9635d160a386647a97a0b402c7af..ff56d7b0494a11ee48cc9e2b297a6f3d1422a8ae 100644 (file)
@@ -722,11 +722,6 @@ function xmldb_main_upgrade($oldversion=0) {
     /// Launch add field idnumber
         $result = $result && add_field($table, $field);
 
-    /// Define index idnumber (unique) to be added to course_modules
-        $table = new XMLDBTable('course_modules');
-        $index = new XMLDBIndex('idnumber');
-        $index->setAttributes(XMLDB_INDEX_UNIQUE, array('idnumber'));
-
     /// Launch add index idnumber
         $result = $result && add_index($table, $index);