[1;32mIndex: modules/search/search.install[0;0m
[1;32m===================================================================[0;0m
[1;32mRCS file: /cvs/drupal/drupal/modules/search/search.install,v[0;0m
[1;32mretrieving revision 1.27[0;0m
[1;32mdiff -u -p -r1.27 search.install[0;0m
[1;31m--- modules/search/search.install	4 Dec 2009 16:49:47 -0000	1.27[0;0m
[1;34m+++ modules/search/search.install	14 Jul 2010 15:01:38 -0000[0;0m
[1;35m@@ -32,7 +32,7 @@ function search_schema() {[0;0m
[0;0m       'type' => array([0;0m
[0;0m         'type' => 'varchar',[0;0m
[0;0m         'length' => 16,[0;0m
[1;31m-        'not null' => FALSE,[0;0m
[1;34m+        'not null' => TRUE,[0;0m
[0;0m         'description' => 'Type of item, e.g. node.',[0;0m
[0;0m       ),[0;0m
[0;0m       'data' => array([0;0m
[1;35m@@ -72,7 +72,7 @@ function search_schema() {[0;0m
[0;0m       'type' => array([0;0m
[0;0m         'type' => 'varchar',[0;0m
[0;0m         'length' => 16,[0;0m
[1;31m-        'not null' => FALSE,[0;0m
[1;34m+        'not null' => TRUE,[0;0m
[0;0m         'description' => 'The {search_dataset}.type of the searchable item to which the word belongs.',[0;0m
[0;0m       ),[0;0m
[0;0m       'score' => array([0;0m
[1;35m@@ -155,9 +155,24 @@ function search_schema() {[0;0m
[0;0m  */[0;0m
[0;0m function search_update_7000() {[0;0m
[0;0m   db_drop_unique_key('search_dataset', 'sid_type');[0;0m
[1;34m+  $dataset_type_spec = array([0;0m
[1;34m+    'type' => 'varchar',[0;0m
[1;34m+    'length' => 16,[0;0m
[1;34m+    'not null' => TRUE,[0;0m
[1;34m+    'description' => 'Type of item, e.g. node.',[0;0m
[1;34m+  );[0;0m
[1;34m+  db_change_field('search_dataset', 'type', 'type', $dataset_type_spec);[0;0m
[0;0m   db_add_primary_key('search_dataset', array('sid', 'type'));[0;0m
[0;0m [0;0m
[0;0m   db_drop_index('search_index', 'word');[0;0m
[0;0m   db_drop_unique_key('search_index', 'word_sid_type');[0;0m
[1;34m+  $index_type_spec = array([0;0m
[1;34m+    'type' => 'varchar',[0;0m
[1;34m+    'length' => 16,[0;0m
[1;34m+    'not null' => TRUE,[0;0m
[1;34m+    'description' => 'The {search_dataset}.type of the searchable item to which the word belongs.',[0;0m
[1;34m+  );[0;0m
[1;34m+  db_change_field('search_index', 'type', 'type', $index_type_spec);[0;0m
[0;0m   db_add_primary_key('search_index', array('word', 'sid', 'type'));[0;0m
[0;0m }[0;0m
[1;34m+[0;0m
