Index: system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.238.2.12
diff -u -r1.238.2.12 system.install
--- system.install	25 Feb 2009 14:02:46 -0000	1.238.2.12
+++ system.install	21 Apr 2009 21:16:22 -0000
@@ -1063,6 +1063,7 @@
       array(
         'modules' => array(array('type', 12), 'status', 'weight', 'filename'),
         'bootstrap' => array(array('type', 12), 'status', 'bootstrap', 'weight', 'filename'),
+        'type_name' => array(array('type', 12), 'name'),
       ),
     );
 
@@ -2548,6 +2549,15 @@
 }
 
 /**
+ * Add a {system} index on type and name.
+ */
+function system_update_6050() {
+  $ret = array();
+  db_add_index($ret, 'system', 'type_name', array(array('type', 12), 'name'));
+  return $ret;
+}
+
+/**
  * @} End of "defgroup updates-5.x-to-6.x"
  * The next series of updates should start at 7000.
  */

