MDL-27248 remove forgotten unique sortorder index from the course table
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user