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

Contents of /contributions/modules/site_tour/site_tour.install

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


Revision 1.3 - (show annotations) (download) (as text)
Sat Nov 25 20:20:38 2006 UTC (3 years ago) by stefano73
Branch: MAIN
CVS Tags: DRUPAL-6--2-0, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--2
Changes since 1.2: +8 -8 lines
File MIME type: text/x-php
Fixed install query for Mysql 5
1 <?php
2 // $Id: site_tour.install,v 1.2 2006/11/24 23:37:50 stefano73 Exp $
3
4 /**
5 * Implementation of hook_install().
6 */
7 function site_tour_install() {
8 switch ($GLOBALS['db_type']) {
9 case 'mysql':
10 case 'mysqli':
11 db_query("CREATE TABLE {site_tour} (
12 id int(10) unsigned NOT NULL AUTO_INCREMENT,
13 url varchar(128) NOT NULL,
14 title varchar(128) NOT NULL,
15 description text,
16 page tinyint(2) unsigned NOT NULL default '0',
17 status tinyint(1) unsigned NOT NULL default '0',
18 KEY id_status(id, status),
19 KEY url(url(15)),
20 KEY title( title(15))
21 ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
22 break;
23 }
24 }

  ViewVC Help
Powered by ViewVC 1.1.2