| 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 |
}
|