Created
June 22, 2009 12:14
-
-
Save hugowetterberg/133943 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; $Id$ | |
name = Loype | |
description = Runningstuff | |
core = 6.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $Id$ | |
function loype_install() { | |
drupal_install_schema('loype'); | |
} | |
function loype_uninstall() { | |
drupal_uninstall_schema('loype'); | |
} | |
function loype_schema() { | |
$schema['loype'] = array( | |
'fields' => array( | |
'vid' => array( | |
'type' => 'int', | |
'unsigned' => TRUE, | |
'not null' => TRUE, | |
'default' => 0 | |
), | |
'nid' => array( | |
'type' => 'int', | |
'unsigned' => TRUE, | |
'not null' => TRUE, | |
'default' => 0 | |
), | |
'video_file' => array( | |
'type' => 'varchar', | |
'length' => 255, | |
'not null' => TRUE, | |
'default' => '' | |
), | |
'gpx_file' => array( | |
'type' => 'varchar', | |
'length' => 255, | |
'not null' => TRUE, | |
'default' => '' | |
), | |
'json' => array( | |
'type' => 'text', | |
'not null' => TRUE | |
), | |
'start_gps' => array( | |
'type' => 'int', | |
'not null' => TRUE, | |
'default' => 0 | |
), | |
'start_video' => array( | |
'type' => 'int', | |
'not null' => TRUE, | |
'default' => 0 | |
), | |
'stop_video' => array( | |
'type' => 'int', | |
'not null' => TRUE, | |
'default' => 0 | |
) | |
), | |
'indexes' => array( | |
'nid' => array('nid') | |
), | |
'primary key' => array('vid') | |
); | |
return $schema; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment