function tripal_contact_schema
2.x tripal_contact.install | tripal_contact_schema() |
3.x tripal_contact.install | tripal_contact_schema() |
1.x tripal_contact.install | tripal_contact_schema() |
Implementation of hook_schema().
File
- legacy/
tripal_contact/ tripal_contact.install, line 136 - Handles install, uninstall, disable and enable functionality including database tables.
Code
function tripal_contact_schema() {
$schema['chado_contact'] = 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
),
'contact_id' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0
)
),
'indexes' => array(
'contact_id' => array('contact_id')
),
'unique keys' => array(
'nid_vid' => array('nid', 'vid'),
'vid' => array('vid')
),
'primary key' => array('nid'),
);
return $schema;
}