function tripal_cv_get_custom_tables
1.x tripal_cv.api.inc | tripal_cv_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_cv_get_custom_tables()
- tripal_cv_load_obo_v1_2 in tripal_cv/
includes/ obo_loader.inc
File
- tripal_cv/
api/ tripal_cv.api.inc, line 771 - Controlled Vocabulary API
Code
function tripal_cv_get_custom_tables($table = NULL) {
if (!$table or strcmp($table, 'tripal_obo_temp') == 0) {
$schema['tripal_obo_temp'] = array(
'table' => 'tripal_obo_temp',
'fields' => array(
'id' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'stanza' => array(
'type' => 'text',
'not null' => TRUE,
),
'type' => array(
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
),
),
'indexes' => array(
'tripal_obo_temp_idx0' => array('id'),
'tripal_obo_temp_idx0' => array('type'),
),
'unique keys' => array(
'tripal_obo_temp_uq0' => array('id'),
),
);
}
return $schema;
}