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

This commit is contained in:
Petr Skoda
2011-08-21 17:32:02 +02:00
parent 4f3632441a
commit fe8682fd41
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -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
View File
@@ -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