? 257910.patch Index: modules/search/search.install =================================================================== RCS file: /cvs/drupal/drupal/modules/search/search.install,v retrieving revision 1.17 diff -u -p -r1.17 search.install --- modules/search/search.install 2 Nov 2008 17:56:20 -0000 1.17 +++ modules/search/search.install 3 Nov 2008 06:04:34 -0000 @@ -89,7 +89,6 @@ function search_schema() { ), 'indexes' => array( 'sid_type' => array('sid', 'type'), - 'word' => array('word'), ), 'primary key' => array('word', 'sid', 'type'), ); @@ -152,3 +151,18 @@ function search_schema() { return $schema; } + +/** + * Replace unique keys in 'search_dataset' and 'search_index' by primary keys. + */ +function search_update_7000() { + $ret = array(); + db_drop_unique_key($ret, 'search_dataset', 'sid_type'); + db_add_primary_key($ret, 'search_dataset', array('sid', 'type')); + + db_drop_index($ret, 'search_index', 'word'); + db_drop_unique_key($ret, 'search_index', 'word_sid_type'); + db_add_primary_key($ret, 'search_index', array('word', 'sid', 'type')); + + return $ret; +} Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.276 diff -u -p -r1.276 system.install --- modules/system/system.install 3 Nov 2008 05:55:57 -0000 1.276 +++ modules/system/system.install 3 Nov 2008 06:04:35 -0000 @@ -3096,22 +3096,7 @@ function system_update_7011() { 'permission' => 'bypass node access', )); } - $insert->execute(); - return $ret; -} - -/** - * Replace unique keys in 'search_dataset' and 'search_index' by primary keys. - */ -function system_update_7012() { - $ret = array(); - db_drop_unique_key($ret, 'search_dataset', 'sid_type'); - db_add_primary_key($ret, 'search_dataset', array('sid', 'type')); - - db_drop_index($ret, 'search_index', 'word'); - db_drop_unique_key($ret, 'search_index', 'word_sid_type'); - db_add_primary_key($ret, 'search_index', array('word', 'sid', 'type')); - + $insert->execute(); return $ret; }