function tripal_cv_get_schemas
1.x tripal_cv.install | tripal_cv_get_schemas() |
This function simply defines all tables needed for the module to work correctly. By putting the table definitions in a separate function we can easily provide the entire list for hook_install or individual tables for an update.
Related topics
1 call to tripal_cv_get_schemas()
- tripal_cv_schema in tripal_cv/
tripal_cv.install - Implementation of hook_schema().
File
- tripal_cv/
tripal_cv.install, line 98 - Contains functions executed only on install/uninstall of this module
Code
function tripal_cv_get_schemas() {
$schema = array();
$schema['tripal_cv_obo'] = array(
'fields' => array(
'obo_id' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
'name' => array('type' => 'varchar', 'length' => 255),
'path' => array('type' => 'varchar', 'length' => 1024),
),
'indexes' => array(
'obo_id' => array('obo_id'),
),
'primary key' => array('obo_id'),
);
return $schema;
}