function tripal_featuremap_schema

2.x tripal_featuremap.install tripal_featuremap_schema()
3.x tripal_featuremap.install tripal_featuremap_schema()
1.x tripal_featuremap.install tripal_featuremap_schema()

Implementation of hook_schema().

Related topics

File

tripal_featuremap/tripal_featuremap.install, line 79
Handles installation of the feature map module

Code

function tripal_featuremap_schema() {
  $schema['chado_featuremap'] = 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
      ),
      'featuremap_id' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0
      )
    ),
    'indexes' => array(
      'featuremap_id' => array('featuremap_id')
    ),
    'unique keys' => array(
      'nid_vid' => array('nid', 'vid'),
      'vid' => array('vid')
    ),
    'primary key' => array('nid'),
  );
  return $schema;
}