Skip to content

Instantly share code, notes, and snippets.

@hugowetterberg
Created June 22, 2009 12:14
Show Gist options
  • Save hugowetterberg/133943 to your computer and use it in GitHub Desktop.
Save hugowetterberg/133943 to your computer and use it in GitHub Desktop.
; $Id$
name = Loype
description = Runningstuff
core = 6.x
<?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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment