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

Contents of /contributions/modules/track/track.install

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


Revision 1.3 - (show annotations) (download) (as text)
Wed Feb 18 04:16:36 2009 UTC (9 months, 1 week ago) by gadzuk
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA3, HEAD
Changes since 1.2: +39 -39 lines
File MIME type: text/x-php
#367448 by gadzuk: 6.x version for development.
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_install().
6 */
7 function track_install() {
8 drupal_install_schema('track');
9 }
10
11 /**
12 * Implementation of hook_uninstall().
13 */
14 function track_uninstall() {
15 drupal_uninstall_schema('track');
16 }
17
18 /**
19 * Implementation of hook_schema().
20 */
21 function track_schema() {
22 $schema['track'] = array(
23 'fields' => array(
24 'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'disp-width' => '10'),
25 'filename' => array('type' => 'varchar', 'length' => '255', 'not null' => TRUE),
26 'filepath' => array('type' => 'varchar', 'length' => '255', 'not null' => TRUE),
27 'latstart' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
28 'lonstart' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
29 'latmin' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
30 'latmax' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
31 'lonmin' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
32 'lonmax' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
33 'length' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
34 'dzminu' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
35 'dzplus' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
36 'zmin' => array('type' => 'float', 'not null' => TRUE, 'default' => '0'),
37 'zmax' => array('type' => 'float', 'not null' => TRUE, 'default' => '0')),
38 );
39
40 return $schema;
41 }

  ViewVC Help
Powered by ViewVC 1.1.2