MDL-27248 remove forgotten unique sortorder index from the course table
This commit is contained in:
@@ -6651,6 +6651,17 @@ FROM
|
||||
upgrade_main_savepoint(true, 2011071300.01);
|
||||
}
|
||||
|
||||
if ($oldversion < 2011081700.01) {
|
||||
// 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, 2011081700.01);
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
|
||||
|
||||
$version = 2011081700.00; // YYYYMMDD = weekly release date of this DEV branch
|
||||
$version = 2011081700.01; // YYYYMMDD = weekly release date of this DEV branch
|
||||
// RR = release increments - 00 in DEV branches
|
||||
// .XX = incremental changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user