/[drupal]/contributions/modules/search_ranking/search_ranking.install
ViewVC logotype

Diff of /contributions/modules/search_ranking/search_ranking.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Sat Jun 28 03:58:48 2008 UTC revision 1.2, Tue Jul 1 01:49:31 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3  // $Id$  // $Id: search_ranking.install,v 1.1 2008/06/28 03:58:48 blucches Exp $
4    
5    
6  function search_ranking_install() {  function search_ranking_install() {
# Line 12  function search_ranking_uninstall() { Line 12  function search_ranking_uninstall() {
12  }  }
13    
14  function search_ranking_schema() {  function search_ranking_schema() {
15      $schema['search_node_links_totals'] = array(
16    $schema['search_node_links'] = array(      'description' => t('Stores a count of inbound links used to alter the search score rankings.'),
     'description' => t('Stores items (like nodes) that link to other nodes, used to improve search scores for nodes that are frequently linked to.'),  
17      'fields' => array(      'fields' => array(
18        'sid' => array(        'sid' => array(
19          'type' => 'int',          'type' => 'int',
# Line 30  function search_ranking_schema() { Line 29  function search_ranking_schema() {
29          'default' => '',          'default' => '',
30          'description' => t('The {search_dataset}.type of the searchable item containing the link to the node.'),          'description' => t('The {search_dataset}.type of the searchable item containing the link to the node.'),
31        ),        ),
32        'nid' => array(        'count' => array(
33          'type' => 'int',          'type' => 'int',
34          'unsigned' => TRUE,          'unsigned' => TRUE,
35          'not null' => TRUE,          'not null' => TRUE,
36          'default' => 0,          'default' => 0,
37          'description' => t('The {node}.nid that this item links to.'),          'description' => t('The number of links that point to the node, {search_dataset}.sid'),
       ),  
       'caption' => array(  
         'type' => 'text',  
         'size' => 'big',  
         'not null' => FALSE,  
         'description' => t('The text used to link to the {node}.nid.'),  
38        ),        ),
39      ),      ),
40      'primary key' => array('sid', 'type', 'nid'),      'primary key' => array('sid'),
41      'indexes' => array('nid' => array('nid')),      'indexes' => array('sid' => array('sid'), 'type' => array('type')),
42    );    );
43    return $schema;    return $schema;
   
44  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2