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

Contents of /contributions/modules/matrix/matrix.install

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Dec 30 10:46:07 2006 UTC (2 years, 10 months ago) by mh86
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, DRUPAL-5--1-2, DRUPAL-5--1-1, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
Changes since 1.1: +1 -0 lines
File MIME type: text/x-php
initial import of 5.0 version
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_install().
6 */
7 function matrix_install() {
8 switch ($GLOBALS['db_type']) {
9 case 'mysql':
10 case 'mysqli':
11 db_query("CREATE TABLE {node_field_matrix_data} (
12 nid int unsigned NOT NULL default '0',
13 vid int unsigned NOT NULL default '0',
14 field_name varchar(32) NOT NULL default '',
15 row int unsigned NOT NULL default '0',
16 col int unsigned NOT NULL default '0',
17 value varchar(255) NOT NULL default '',
18 PRIMARY KEY (vid,field_name,row,col)
19 ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
20 break;
21 }
22 }

  ViewVC Help
Powered by ViewVC 1.1.2