mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Drop one index that shouldn't be there. MDL-11751
This commit is contained in:
parent
8bc9ebc401
commit
9b62ebb87f
1 changed files with 0 additions and 5 deletions
|
@ -722,11 +722,6 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||||
/// Launch add field idnumber
|
/// Launch add field idnumber
|
||||||
$result = $result && add_field($table, $field);
|
$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
|
/// Launch add index idnumber
|
||||||
$result = $result && add_index($table, $index);
|
$result = $result && add_index($table, $index);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue