function tripal_organism_schema
2.x tripal_organism.install | tripal_organism_schema() |
3.x tripal_organism.install | tripal_organism_schema() |
1.x tripal_organism.install | tripal_organism_schema() |
Implementation of hook_schema().
Related topics
File
- tripal_organism/
tripal_organism.install, line 47 - Functions pertaining to the install/uninstall of this module
Code
function tripal_organism_schema() {
$schema['chado_organism'] = 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
),
'organism_id' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0
)
),
'indexes' => array(
'organism_id' => array('organism_id')
),
'unique keys' => array(
'nid_vid' => array('nid', 'vid'),
'vid' => array('vid')
),
'primary key' => array('nid'),
);
return $schema;
}