MDL-27248 remove forgotten unique sortorder index from the course table

This commit is contained in:
Petr Skoda
2011-08-21 17:34:26 +02:00
parent 9e47a85a24
commit 84c656a557
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -6119,6 +6119,18 @@ FROM
upgrade_main_savepoint(true, 2011033003.09);
}
if ($oldversion < 2011033004.04) {
// Remove category_sortorder index that was supposed to be removed long time ago
$table = new xmldb_table('course');
$index = new xmldb_index('category_sortorder', XMLDB_INDEX_UNIQUE, array('category', 'sortorder'));
if ($dbman->index_exists($table, $index)) {
$dbman->drop_index($table, $index);
}
upgrade_main_savepoint(true, 2011033004.04);
}
return true;
}
+1 -1
View File
@@ -30,7 +30,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2011033004.03; // 20110330 = branching date YYYYMMDD - do not modify!
$version = 2011033004.04; // 20110330 = branching date YYYYMMDD - do not modify!
// RR = release version - do not change in weeklies
// .XX = incremental changes