function tripal_feature_schema
2.x tripal_feature.install | tripal_feature_schema() |
3.x tripal_feature.install | tripal_feature_schema() |
1.x tripal_feature.install | tripal_feature_schema() |
Implementation of hook_schema().
File
- legacy/
tripal_feature/ tripal_feature.install, line 82 - Installation of the feature module
Code
function tripal_feature_schema() {
$schema['chado_feature'] = 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
),
'feature_id' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0
),
'sync_date' => array(
'type' => 'int',
'not null' => FALSE,
'description' => 'UNIX integer sync date/time'
),
),
'indexes' => array(
'chado_feature_idx1' => array('feature_id')
),
'unique keys' => array(
'chado_feature_uq1' => array('nid', 'vid'),
'chado_feature_uq2' => array('vid')
),
'primary key' => array('nid'),
);
return $schema;
}