/[drupal]/contributions/modules/views_fastsearch/contrib/vfs_ranking_nodetype/vfs_ranking_nodetype.install
ViewVC logotype

Diff of /contributions/modules/views_fastsearch/contrib/vfs_ranking_nodetype/vfs_ranking_nodetype.install

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

revision 1.1, Thu Jan 17 04:51:33 2008 UTC revision 1.1.2.1, Thu Jan 17 04:51:33 2008 UTC
# Line 0  Line 1 
1    <?php
2    // $Id$
3    
4    // @todo: you shouldn't modify {node_type}, but intead create your own table.
5    
6    function vfs_ranking_nodetype_install() {
7      $ret = array();
8      $ret[] = db_query('
9      CREATE TABLE {vfs_ranking_nodetype} (
10      `type` VARCHAR(50)  NOT NULL,
11      `search_weight` INT  NOT NULL DEFAULT 1,
12      PRIMARY KEY  (`type`)
13      )
14        ENGINE = MYISAM;
15      ');
16      return $ret;
17    }
18    function vfs_ranking_nodetype_uninstall() {
19      $ret = array();
20      $ret[] = db_query('DROP TABLE {vfs_ranking_nodetype}');
21      return $ret;
22    }

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

  ViewVC Help
Powered by ViewVC 1.1.2