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

Contents of /contributions/modules/views_fusion/views_fusion.install

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


Revision 1.3 - (show annotations) (download) (as text)
Sun Nov 19 15:37:29 2006 UTC (3 years ago) by fago
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, DRUPAL-5--1-2, HEAD
Branch point for: DRUPAL-5
Changes since 1.2: +2 -2 lines
File MIME type: text/x-php
correction for last commit
1 <?php
2 // $Id: views_fusion.install,v 1.2 2006/11/19 15:35:59 fago Exp $
3
4 function views_fusion_install() {
5
6 switch ($GLOBALS['db_type']) {
7 case 'mysqli':
8 case 'mysql':
9 db_query("CREATE TABLE if not exists {views_fusion} (
10 vid int(10) unsigned NOT NULL,
11 mvid int(10) unsigned NOT NULL,
12 uses varchar(32) NOT NULL,
13 PRIMARY KEY(vid,mvid)
14 ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
15 break;
16 case 'pgsql':
17 db_query("CREATE TABLE {views_fusion} (
18 vid integer NOT NULL,
19 mvid integer NOT NULL,
20 uses varchar(32) NOT NULL,
21 PRIMARY KEY(vid,mvid)
22 )");
23 default:
24 break;
25 }
26
27 }

  ViewVC Help
Powered by ViewVC 1.1.2