Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.238.2.8
diff -u -p -r1.238.2.8 system.install
--- modules/system/system.install	14 Jan 2009 21:36:16 -0000	1.238.2.8
+++ modules/system/system.install	19 Feb 2009 03:00:24 -0000
@@ -1063,6 +1063,7 @@ function system_schema() {
       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'),
       ),
     );
 
@@ -2532,6 +2533,14 @@ function system_update_6048() {
   return $ret;
 }
 
+/**
+ * Add a {system} index on type and name.
+ */
+function system_update_6049() {
+  $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"
