Permalink
Browse files

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

  • Loading branch information...
1 parent 9e47a85 commit 84c656a557717da26334b23df1d30db9f79dfac3 @skodak skodak committed Aug 21, 2011
Showing with 13 additions and 1 deletion.
  1. +12 −0 lib/db/upgrade.php
  2. +1 −1 version.php
View
12 lib/db/upgrade.php
@@ -6119,6 +6119,18 @@ function xmldb_main_upgrade($oldversion) {
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;
}
View
2 version.php
@@ -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

0 comments on commit 84c656a

Please sign in to comment.