function tripal_phylogeny_schema
2.x tripal_phylogeny.install | tripal_phylogeny_schema() |
3.x tripal_phylogeny.install | tripal_phylogeny_schema() |
Implementation of hook_schema(). Standard tripal linker table between a node and a phylotree record.
Related topics
File
- tripal_phylogeny/
tripal_phylogeny.install, line 90 - Installation of the phylotree module
Code
function tripal_phylogeny_schema() {
$schema['chado_phylotree'] = 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
),
'phylotree_id' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0
)
),
'indexes' => array(
'chado_phylotree_idx1' => array('phylotree_id')
),
'unique keys' => array(
'chado_phylotree_uq1' => array('nid', 'vid'),
'chado_phylotree_uq2' => array('vid')
),
'primary key' => array('nid'),
);
return $schema;
}