function tripal_project_schema
2.x tripal_project.install | tripal_project_schema() |
3.x tripal_project.install | tripal_project_schema() |
1.x tripal_project.install | tripal_project_schema() |
Implementation of hook_schema().
Related topics
File
- tripal_project/
tripal_project.install, line 73 - Install the tripal project
Code
function tripal_project_schema() {
$schema['chado_project'] = array(
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'vid' => array(
'type' => 'int',
'not null' => TRUE,
),
'project_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array('nid', 'vid', 'project_id'),
);
return $schema;
}