function tripal_feature_get_custom_tables
1.x tripal_feature.api.inc | tripal_feature_get_custom_tables($table = NULL) |
This function defines the custom tables that will be created in the chado schema.
Related topics
1 call to tripal_feature_get_custom_tables()
- tripal_feature_load_gff3 in tripal_feature/
includes/ gff_loader.inc
File
- tripal_feature/
api/ tripal_feature.api.inc, line 840 - Provides an application programming interface (API) for working with features
Code
function tripal_feature_get_custom_tables($table = NULL) {
if (!$table or strcmp($table, 'tripal_gff_temp') == 0) {
$schema['tripal_gff_temp'] = array(
'table' => 'tripal_gff_temp',
'fields' => array(
'feature_id' => array(
'type' => 'int',
'not null' => TRUE,
),
'organism_id' => array(
'type' => 'int',
'not null' => TRUE,
),
'uniquename' => array(
'type' => 'text',
'not null' => TRUE,
),
'type_name' => array(
'type' => 'varchar',
'length' => '1024',
'not null' => TRUE,
),
),
'indexes' => array(
'tripal_gff_temp_idx0' => array('feature_id'),
'tripal_gff_temp_idx0' => array('organism_id'),
'tripal_gff_temp_idx1' => array('uniquename'),
),
'unique keys' => array(
'tripal_gff_temp_uq0' => array('feature_id'),
'tripal_gff_temp_uq1' => array('uniquename', 'organism_id', 'type_name'),
),
);
}
return $schema;
}